Fix gdb build with -std=gnu++11
[deliverable/binutils-gdb.git] / gas / configure
CommitLineData
252b5132 1#! /bin/sh
252b5132 2# Guess values for system-dependent variables and create Makefiles.
f48dfe41 3# Generated by GNU Autoconf 2.69 for gas 2.32.51.
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## -------------------- ##
13b2be9c 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 :
13b2be9c
DJ
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
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
13b2be9c
DJ
31fi
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 }
13b2be9c
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
13b2be9c
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
13b2be9c 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."
13b2be9c 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."
13b2be9c 279 fi
81ecdfbb
RW
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
364
365
366} # as_fn_mkdir_p
d0ac1c44
SM
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} # as_fn_executable_p
81ecdfbb
RW
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
d0ac1c44
SM
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
81ecdfbb
RW
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 415# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
416as_fn_error ()
417{
d0ac1c44
SM
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
81ecdfbb 422 fi
d0ac1c44 423 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
424 as_fn_exit $as_status
425} # as_fn_error
13b2be9c 426
81ecdfbb
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
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
13b2be9c
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
13b2be9c 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
13b2be9c
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'`
13b2be9c 464
13b2be9c
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
13b2be9c 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 |
13b2be9c 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
13b2be9c 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13b2be9c 490 t loop
81ecdfbb 491 s/-\n.*//
13b2be9c 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; }
13b2be9c 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
13b2be9c
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"
13b2be9c
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';;
13b2be9c
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
13b2be9c 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
13b2be9c 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 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'
13b2be9c 541 fi
13b2be9c 542else
d0ac1c44 543 as_ln_s='cp -pR'
13b2be9c 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
13b2be9c
DJ
547
548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
13b2be9c 550else
ab509236 551 test -d ./-p && rmdir ./-p
13b2be9c
DJ
552 as_mkdir_p=false
553fi
554
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
13b2be9c
DJ
557
558# Sed expression to map a string onto a valid CPP name.
ab509236 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c
DJ
560
561# Sed expression to map a string onto a valid variable name.
ab509236 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13b2be9c 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
13b2be9c 570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
13b2be9c
DJ
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
252b5132 574
13b2be9c
DJ
575#
576# Initializations.
577#
252b5132 578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
13b2be9c 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
13b2be9c
DJ
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
13b2be9c
DJ
586
587# Identity of this package.
2e98a7bd
AM
588PACKAGE_NAME='gas'
589PACKAGE_TARNAME='gas'
f48dfe41
NC
590PACKAGE_VERSION='2.32.51'
591PACKAGE_STRING='gas 2.32.51'
2e98a7bd
AM
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
13b2be9c
DJ
594
595ac_unique_file="as.h"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
81ecdfbb 599#ifdef HAVE_SYS_TYPES_H
13b2be9c
DJ
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
13b2be9c
DJ
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
13b2be9c
DJ
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
13b2be9c
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
13b2be9c
DJ
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
13b2be9c
DJ
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
13b2be9c 623# include <inttypes.h>
13b2be9c 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
13b2be9c
DJ
629# include <unistd.h>
630#endif"
631
81ecdfbb
RW
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
0138187e 636zlibinc
543b7933 637zlibdir
81ecdfbb
RW
638LIBM
639ALLOCA
640GENINSRC_NEVER_FALSE
641GENINSRC_NEVER_TRUE
642MAINT
643MAINTAINER_MODE_FALSE
644MAINTAINER_MODE_TRUE
645MSGMERGE
646MSGFMT
647MKINSTALLDIRS
648CATOBJEXT
649GENCAT
650INSTOBJEXT
651DATADIRNAME
652CATALOGS
653POSUB
654GMSGFMT
655XGETTEXT
656INCINTL
657LIBINTL_DEP
658LIBINTL
659USE_NLS
660LEXLIB
661LEX_OUTPUT_ROOT
662LEX
663YFLAGS
664YACC
665OPCODES_LIB
666atof
667install_tooldir
668te_file
669obj_format
670target_cpu_type
671extra_objects
672cgen_cpu_prefix
673GDBINIT
6757cf57 674WARN_WRITE_STRINGS
81ecdfbb 675NO_WERROR
c5da1932 676WARN_CFLAGS_FOR_BUILD
81ecdfbb 677WARN_CFLAGS
2d7f2507 678do_compare
81ecdfbb
RW
679OTOOL64
680OTOOL
681LIPO
682NMEDIT
683DSYMUTIL
81ecdfbb
RW
684RANLIB
685AR
686OBJDUMP
687LN_S
688NM
689ac_ct_DUMPBIN
690DUMPBIN
691LD
692FGREP
693SED
694LIBTOOL
695EGREP
696GREP
697CPP
d0ac1c44
SM
698AM_BACKSLASH
699AM_DEFAULT_VERBOSITY
700AM_DEFAULT_V
701AM_V
81ecdfbb
RW
702am__fastdepCC_FALSE
703am__fastdepCC_TRUE
704CCDEPMODE
6eb7d830 705am__nodep
81ecdfbb
RW
706AMDEPBACKSLASH
707AMDEP_FALSE
708AMDEP_TRUE
709am__quote
710am__include
711DEPDIR
712am__untar
713am__tar
714AMTAR
715am__leading_dot
716SET_MAKE
717AWK
718mkdir_p
719MKDIR_P
720INSTALL_STRIP_PROGRAM
721STRIP
722install_sh
723MAKEINFO
724AUTOHEADER
725AUTOMAKE
726AUTOCONF
727ACLOCAL
728VERSION
729PACKAGE
730CYGPATH_W
731am__isrc
732INSTALL_DATA
733INSTALL_SCRIPT
734INSTALL_PROGRAM
735OBJEXT
736EXEEXT
737ac_ct_CC
738CPPFLAGS
739LDFLAGS
740CFLAGS
741CC
742target_os
743target_vendor
744target_cpu
745target
746host_os
747host_vendor
748host_cpu
749host
750build_os
751build_vendor
752build_cpu
753build
754target_alias
755host_alias
756build_alias
757LIBS
758ECHO_T
759ECHO_N
760ECHO_C
761DEFS
762mandir
763localedir
764libdir
765psdir
766pdfdir
767dvidir
768htmldir
769infodir
770docdir
771oldincludedir
772includedir
f8861f5d 773runstatedir
81ecdfbb
RW
774localstatedir
775sharedstatedir
776sysconfdir
777datadir
778datarootdir
779libexecdir
780sbindir
781bindir
782program_transform_name
783prefix
784exec_prefix
785PACKAGE_URL
786PACKAGE_BUGREPORT
787PACKAGE_STRING
788PACKAGE_VERSION
789PACKAGE_TARNAME
790PACKAGE_NAME
791PATH_SEPARATOR
792SHELL'
13b2be9c 793ac_subst_files=''
81ecdfbb
RW
794ac_user_opts='
795enable_option_checking
796enable_dependency_tracking
d0ac1c44 797enable_silent_rules
81ecdfbb
RW
798enable_shared
799enable_static
800with_pic
801enable_fast_install
802with_gnu_ld
803enable_libtool_lock
b879806f
AM
804enable_plugins
805enable_largefile
81ecdfbb
RW
806enable_targets
807enable_checking
6c3bc0f8 808enable_compressed_debug_sections
0cb4071e 809enable_x86_relax_relocations
b8871f35 810enable_elf_stt_common
0df8ad28 811enable_generate_build_notes
6f2117ba 812enable_mips_fix_loongson3_llsc
b4a3a7b4 813enable_x86_used_note
2dc8dd17 814enable_default_riscv_attribute
81ecdfbb
RW
815enable_werror
816enable_build_warnings
9004b6bd 817with_cpu
81ecdfbb
RW
818enable_nls
819enable_maintainer_mode
0138187e 820with_system_zlib
81ecdfbb
RW
821'
822 ac_precious_vars='build_alias
823host_alias
824target_alias
825CC
826CFLAGS
827LDFLAGS
828LIBS
829CPPFLAGS
830CPP
831YACC
832YFLAGS'
833
252b5132
RH
834
835# Initialize some variables set by options.
13b2be9c
DJ
836ac_init_help=
837ac_init_version=false
81ecdfbb
RW
838ac_unrecognized_opts=
839ac_unrecognized_sep=
252b5132
RH
840# The variables have the same names as the options, with
841# dashes changed to underlines.
13b2be9c 842cache_file=/dev/null
252b5132 843exec_prefix=NONE
252b5132 844no_create=
252b5132
RH
845no_recursion=
846prefix=NONE
847program_prefix=NONE
848program_suffix=NONE
849program_transform_name=s,x,x,
850silent=
851site=
852srcdir=
252b5132
RH
853verbose=
854x_includes=NONE
855x_libraries=NONE
13b2be9c
DJ
856
857# Installation directory options.
858# These are left unexpanded so users can "make install exec_prefix=/foo"
859# and all the variables that are supposed to be based on exec_prefix
860# by default will actually change.
861# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 862# (The list follows the same order as the GNU Coding Standards.)
252b5132
RH
863bindir='${exec_prefix}/bin'
864sbindir='${exec_prefix}/sbin'
865libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
866datarootdir='${prefix}/share'
867datadir='${datarootdir}'
252b5132
RH
868sysconfdir='${prefix}/etc'
869sharedstatedir='${prefix}/com'
870localstatedir='${prefix}/var'
f8861f5d 871runstatedir='${localstatedir}/run'
252b5132
RH
872includedir='${prefix}/include'
873oldincludedir='/usr/include'
2e98a7bd 874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
81ecdfbb
RW
875infodir='${datarootdir}/info'
876htmldir='${docdir}'
877dvidir='${docdir}'
878pdfdir='${docdir}'
879psdir='${docdir}'
880libdir='${exec_prefix}/lib'
881localedir='${datarootdir}/locale'
882mandir='${datarootdir}/man'
252b5132 883
252b5132 884ac_prev=
81ecdfbb 885ac_dashdash=
252b5132
RH
886for ac_option
887do
252b5132
RH
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
81ecdfbb 890 eval $ac_prev=\$ac_option
252b5132
RH
891 ac_prev=
892 continue
893 fi
894
81ecdfbb 895 case $ac_option in
d0ac1c44
SM
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *=) ac_optarg= ;;
898 *) ac_optarg=yes ;;
81ecdfbb 899 esac
252b5132
RH
900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
81ecdfbb
RW
903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
252b5132
RH
906
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
13b2be9c 910 bindir=$ac_optarg ;;
252b5132
RH
911
912 -build | --build | --buil | --bui | --bu)
13b2be9c 913 ac_prev=build_alias ;;
252b5132 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
13b2be9c 915 build_alias=$ac_optarg ;;
252b5132
RH
916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
13b2be9c
DJ
922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
252b5132 926
81ecdfbb 927 -datadir | --datadir | --datadi | --datad)
252b5132 928 ac_prev=datadir ;;
81ecdfbb 929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
13b2be9c 930 datadir=$ac_optarg ;;
252b5132 931
81ecdfbb
RW
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
252b5132 939 -disable-* | --disable-*)
81ecdfbb 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
252b5132 941 # Reject names that are not valid shell variable names.
81ecdfbb 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 943 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
252b5132
RH
964
965 -enable-* | --enable-*)
81ecdfbb 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
252b5132 967 # Reject names that are not valid shell variable names.
81ecdfbb 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 969 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974"enable_$ac_useropt"
975"*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
252b5132 978 esac
81ecdfbb 979 eval enable_$ac_useropt=\$ac_optarg ;;
252b5132
RH
980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
13b2be9c 988 exec_prefix=$ac_optarg ;;
252b5132
RH
989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
13b2be9c
DJ
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
252b5132
RH
1000
1001 -host | --host | --hos | --ho)
13b2be9c 1002 ac_prev=host_alias ;;
252b5132 1003 -host=* | --host=* | --hos=* | --ho=*)
13b2be9c 1004 host_alias=$ac_optarg ;;
252b5132 1005
81ecdfbb
RW
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
252b5132
RH
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
13b2be9c 1017 includedir=$ac_optarg ;;
252b5132
RH
1018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
13b2be9c 1022 infodir=$ac_optarg ;;
252b5132
RH
1023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
13b2be9c 1027 libdir=$ac_optarg ;;
252b5132
RH
1028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
13b2be9c 1034 libexecdir=$ac_optarg ;;
252b5132 1035
81ecdfbb
RW
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
252b5132 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1042 | --localstate | --localstat | --localsta | --localst | --locals)
252b5132
RH
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
13b2be9c 1046 localstatedir=$ac_optarg ;;
252b5132
RH
1047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
13b2be9c 1051 mandir=$ac_optarg ;;
252b5132
RH
1052
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
13b2be9c 1058 | --no-cr | --no-c | -n)
252b5132
RH
1059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
13b2be9c 1072 oldincludedir=$ac_optarg ;;
252b5132
RH
1073
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
13b2be9c 1077 prefix=$ac_optarg ;;
252b5132
RH
1078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
13b2be9c 1084 program_prefix=$ac_optarg ;;
252b5132
RH
1085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
13b2be9c 1091 program_suffix=$ac_optarg ;;
252b5132
RH
1092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
13b2be9c 1108 program_transform_name=$ac_optarg ;;
252b5132 1109
81ecdfbb
RW
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
252b5132
RH
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
f8861f5d
JM
1124 -runstatedir | --runstatedir | --runstatedi | --runstated \
1125 | --runstate | --runstat | --runsta | --runst | --runs \
1126 | --run | --ru | --r)
1127 ac_prev=runstatedir ;;
1128 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1129 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1130 | --run=* | --ru=* | --r=*)
1131 runstatedir=$ac_optarg ;;
1132
252b5132
RH
1133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
13b2be9c 1137 sbindir=$ac_optarg ;;
252b5132
RH
1138
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
13b2be9c 1148 sharedstatedir=$ac_optarg ;;
252b5132
RH
1149
1150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
13b2be9c 1153 site=$ac_optarg ;;
76bff705 1154
252b5132
RH
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
13b2be9c 1158 srcdir=$ac_optarg ;;
252b5132
RH
1159
1160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
13b2be9c 1165 sysconfdir=$ac_optarg ;;
252b5132
RH
1166
1167 -target | --target | --targe | --targ | --tar | --ta | --t)
13b2be9c 1168 ac_prev=target_alias ;;
252b5132 1169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
13b2be9c 1170 target_alias=$ac_optarg ;;
252b5132
RH
1171
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1174
13b2be9c
DJ
1175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
252b5132
RH
1177
1178 -with-* | --with-*)
81ecdfbb 1179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
252b5132 1180 # Reject names that are not valid shell variable names.
81ecdfbb 1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1182 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187"with_$ac_useropt"
1188"*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
252b5132 1191 esac
81ecdfbb 1192 eval with_$ac_useropt=\$ac_optarg ;;
252b5132
RH
1193
1194 -without-* | --without-*)
81ecdfbb 1195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
252b5132 1196 # Reject names that are not valid shell variable names.
81ecdfbb 1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1198 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203"with_$ac_useropt"
1204"*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
252b5132
RH
1209
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1213
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
13b2be9c 1219 x_includes=$ac_optarg ;;
252b5132
RH
1220
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
13b2be9c 1226 x_libraries=$ac_optarg ;;
252b5132 1227
d0ac1c44
SM
1228 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229Try \`$0 --help' for more information"
252b5132
RH
1230 ;;
1231
13b2be9c
DJ
1232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1238 esac
1239 eval $ac_envvar=\$ac_optarg
13b2be9c
DJ
1240 export $ac_envvar ;;
1241
252b5132 1242 *)
13b2be9c 1243 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
13b2be9c 1245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
252b5132
RH
1248 ;;
1249
1250 esac
1251done
1252
1253if test -n "$ac_prev"; then
13b2be9c 1254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1255 as_fn_error $? "missing argument to $ac_option"
c8615825 1256fi
c8615825 1257
81ecdfbb
RW
1258if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
d0ac1c44 1261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
13b2be9c 1263 esac
81ecdfbb 1264fi
252b5132 1265
81ecdfbb
RW
1266# Check all directory arguments for consistency.
1267for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
f8861f5d 1270 libdir localedir mandir runstatedir
252b5132 1271do
81ecdfbb
RW
1272 eval ac_val=\$$ac_var
1273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
13b2be9c 1280 case $ac_val in
81ecdfbb
RW
1281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
252b5132 1283 esac
d0ac1c44 1284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
252b5132
RH
1285done
1286
13b2be9c
DJ
1287# There might be people who depend on the old broken behavior: `$host'
1288# used to hold the argument of --host etc.
1289# FIXME: To remove some day.
1290build=$build_alias
1291host=$host_alias
1292target=$target_alias
1293
1294# FIXME: To remove some day.
1295if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
13b2be9c
DJ
1298 elif test "x$build_alias" != "x$host_alias"; then
1299 cross_compiling=yes
1300 fi
1301fi
9b2b7d69 1302
13b2be9c
DJ
1303ac_tool_prefix=
1304test -n "$host_alias" && ac_tool_prefix=$host_alias-
1305
1306test "$silent" = yes && exec 6>/dev/null
252b5132 1307
252b5132 1308
81ecdfbb
RW
1309ac_pwd=`pwd` && test -n "$ac_pwd" &&
1310ac_ls_di=`ls -di .` &&
1311ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1312 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1313test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1314 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1315
1316
252b5132
RH
1317# Find the source files, if location was not specified.
1318if test -z "$srcdir"; then
1319 ac_srcdir_defaulted=yes
81ecdfbb
RW
1320 # Try the directory containing this script, then the parent directory.
1321 ac_confdir=`$as_dirname -- "$as_myself" ||
1322$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1323 X"$as_myself" : 'X\(//\)[^/]' \| \
1324 X"$as_myself" : 'X\(//\)$' \| \
1325 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1326$as_echo X"$as_myself" |
1327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)[^/].*/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\/\)$/{
1336 s//\1/
1337 q
1338 }
1339 /^X\(\/\).*/{
1340 s//\1/
1341 q
1342 }
1343 s/.*/./; q'`
252b5132 1344 srcdir=$ac_confdir
81ecdfbb 1345 if test ! -r "$srcdir/$ac_unique_file"; then
252b5132
RH
1346 srcdir=..
1347 fi
1348else
1349 ac_srcdir_defaulted=no
1350fi
81ecdfbb
RW
1351if test ! -r "$srcdir/$ac_unique_file"; then
1352 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1353 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1354fi
1355ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1356ac_abs_confdir=`(
d0ac1c44 1357 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1358 pwd)`
1359# When building in place, set srcdir=.
1360if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 srcdir=.
1362fi
1363# Remove unnecessary trailing slashes from srcdir.
1364# Double slashes in file names in object file debugging info
1365# mess up M-x gdb in Emacs.
1366case $srcdir in
1367*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1368esac
1369for ac_var in $ac_precious_vars; do
1370 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_env_${ac_var}_value=\$${ac_var}
1372 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1374done
d6d788bd 1375
13b2be9c
DJ
1376#
1377# Report the --help message.
1378#
1379if test "$ac_init_help" = "long"; then
1380 # Omit some internal or obsolete options to make the list less imposing.
1381 # This message is too long to be a string in the A/UX 3.1 sh.
1382 cat <<_ACEOF
f48dfe41 1383\`configure' configures gas 2.32.51 to adapt to many kinds of systems.
9b2b7d69 1384
13b2be9c 1385Usage: $0 [OPTION]... [VAR=VALUE]...
9b2b7d69 1386
13b2be9c
DJ
1387To assign environment variables (e.g., CC, CFLAGS...), specify them as
1388VAR=VALUE. See below for descriptions of some of the useful variables.
9b2b7d69 1389
13b2be9c 1390Defaults for the options are specified in brackets.
9b2b7d69 1391
13b2be9c
DJ
1392Configuration:
1393 -h, --help display this help and exit
1394 --help=short display options specific to this package
1395 --help=recursive display the short help of all the included packages
1396 -V, --version display version information and exit
d0ac1c44 1397 -q, --quiet, --silent do not print \`checking ...' messages
13b2be9c
DJ
1398 --cache-file=FILE cache test results in FILE [disabled]
1399 -C, --config-cache alias for \`--cache-file=config.cache'
1400 -n, --no-create do not create output files
1401 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1402
13b2be9c
DJ
1403Installation directories:
1404 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1405 [$ac_default_prefix]
13b2be9c 1406 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1407 [PREFIX]
9b2b7d69 1408
13b2be9c
DJ
1409By default, \`make install' will install all the files in
1410\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1411an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1412for instance \`--prefix=\$HOME'.
9b2b7d69 1413
13b2be9c 1414For better control, use the options below.
9b2b7d69 1415
13b2be9c 1416Fine tuning of the installation directories:
81ecdfbb
RW
1417 --bindir=DIR user executables [EPREFIX/bin]
1418 --sbindir=DIR system admin executables [EPREFIX/sbin]
1419 --libexecdir=DIR program executables [EPREFIX/libexec]
1420 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1421 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1422 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
f8861f5d 1423 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
81ecdfbb
RW
1424 --libdir=DIR object code libraries [EPREFIX/lib]
1425 --includedir=DIR C header files [PREFIX/include]
1426 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1427 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1428 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1429 --infodir=DIR info documentation [DATAROOTDIR/info]
1430 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1431 --mandir=DIR man documentation [DATAROOTDIR/man]
2e98a7bd 1432 --docdir=DIR documentation root [DATAROOTDIR/doc/gas]
81ecdfbb
RW
1433 --htmldir=DIR html documentation [DOCDIR]
1434 --dvidir=DIR dvi documentation [DOCDIR]
1435 --pdfdir=DIR pdf documentation [DOCDIR]
1436 --psdir=DIR ps documentation [DOCDIR]
13b2be9c 1437_ACEOF
9b2b7d69 1438
13b2be9c 1439 cat <<\_ACEOF
9b2b7d69 1440
13b2be9c
DJ
1441Program names:
1442 --program-prefix=PREFIX prepend PREFIX to installed program names
1443 --program-suffix=SUFFIX append SUFFIX to installed program names
1444 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
9b2b7d69 1445
13b2be9c
DJ
1446System types:
1447 --build=BUILD configure for building on BUILD [guessed]
1448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1449 --target=TARGET configure for building compilers for TARGET [HOST]
1450_ACEOF
9b2b7d69 1451fi
9b2b7d69 1452
13b2be9c 1453if test -n "$ac_init_help"; then
2e98a7bd 1454 case $ac_init_help in
f48dfe41 1455 short | recursive ) echo "Configuration of gas 2.32.51:";;
2e98a7bd 1456 esac
13b2be9c 1457 cat <<\_ACEOF
9b2b7d69 1458
13b2be9c 1459Optional Features:
81ecdfbb 1460 --disable-option-checking ignore unrecognized --enable/--with options
13b2be9c
DJ
1461 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1462 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d0ac1c44
SM
1463 --enable-dependency-tracking
1464 do not reject slow dependency extractors
1465 --disable-dependency-tracking
1466 speeds up one-time build
1467 --enable-silent-rules less verbose build output (undo: "make V=1")
1468 --disable-silent-rules verbose build output (undo: "make V=0")
81ecdfbb
RW
1469 --enable-shared[=PKGS] build shared libraries [default=yes]
1470 --enable-static[=PKGS] build static libraries [default=yes]
d7040cdb
SE
1471 --enable-fast-install[=PKGS]
1472 optimize for fast installation [default=yes]
13b2be9c 1473 --disable-libtool-lock avoid locking (might break parallel builds)
b879806f
AM
1474 --enable-plugins Enable support for plugins
1475 --disable-largefile omit support for large files
241a6c40 1476 --enable-targets alternative target configurations besides the primary
c43a438d 1477 --enable-checking enable run-time checks
4894d80b 1478 --enable-compressed-debug-sections={all,gas,none}
27ba7c94 1479 compress debug sections by default
0cb4071e
L
1480 --enable-x86-relax-relocations
1481 generate x86 relax relocations by default
b8871f35
L
1482 --enable-elf-stt-common generate ELF common symbols with STT_COMMON type by
1483 default
0df8ad28
NC
1484 --enable-generate-build-notes
1485 generate GNU Build notes if none are provided by the
1486 input
6f2117ba
PH
1487 --enable-mips-fix-loongson3-llsc
1488 enable MIPS fix Loongson3 LLSC errata
b4a3a7b4 1489 --enable-x86-used-note generate GNU x86 used ISA and feature properties
2dc8dd17
JW
1490 --enable-default-riscv-attribute
1491 generate RISC-V arch attribute by default
241a6c40
AM
1492 --enable-werror treat compile warnings as errors
1493 --enable-build-warnings enable build-time compiler warnings
13b2be9c 1494 --disable-nls do not use Native Language Support
d0ac1c44
SM
1495 --enable-maintainer-mode
1496 enable make rules and dependencies not useful (and
1497 sometimes confusing) to the casual installer
9b2b7d69 1498
13b2be9c
DJ
1499Optional Packages:
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
d7040cdb
SE
1502 --with-pic try to use only PIC/non-PIC objects [default=use
1503 both]
1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
9004b6bd
AB
1505 --with-cpu=CPU default cpu variant is CPU (currently only supported
1506 on ARC)
0138187e 1507 --with-system-zlib use installed libz
9b2b7d69 1508
13b2be9c
DJ
1509Some influential environment variables:
1510 CC C compiler command
1511 CFLAGS C compiler flags
1512 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1513 nonstandard directory <lib dir>
81ecdfbb 1514 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1515 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1516 you have headers in a nonstandard directory <include dir>
13b2be9c 1517 CPP C preprocessor
d0ac1c44
SM
1518 YACC The `Yet Another Compiler Compiler' implementation to use.
1519 Defaults to the first program found out of: `bison -y', `byacc',
1520 `yacc'.
81ecdfbb
RW
1521 YFLAGS The list of arguments that will be passed by default to $YACC.
1522 This script will default YFLAGS to the empty string to avoid a
1523 default value of `-d' given by some make applications.
13b2be9c
DJ
1524
1525Use these variables to override the choices made by `configure' or to help
1526it to find libraries and programs with nonstandard names/locations.
1527
81ecdfbb 1528Report bugs to the package provider.
13b2be9c 1529_ACEOF
81ecdfbb 1530ac_status=$?
9b2b7d69 1531fi
9b2b7d69 1532
13b2be9c
DJ
1533if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
13b2be9c 1535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 continue
13b2be9c
DJ
1539 ac_builddir=.
1540
81ecdfbb
RW
1541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
1544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1545 # A ".." for each directory in $ac_dir_suffix.
1546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
9b2b7d69 1556
13b2be9c 1557case $srcdir in
81ecdfbb 1558 .) # We are building in place.
13b2be9c 1559 ac_srcdir=.
81ecdfbb
RW
1560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 1563 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ab509236 1570esac
81ecdfbb
RW
1571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1572
1573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
1575 if test -f "$ac_srcdir/configure.gnu"; then
1576 echo &&
1577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
1579 echo &&
1580 $SHELL "$ac_srcdir/configure" --help=recursive
13b2be9c 1581 else
81ecdfbb
RW
1582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
13b2be9c
DJ
1585 done
1586fi
6840198f 1587
81ecdfbb 1588test -n "$ac_init_help" && exit $ac_status
13b2be9c
DJ
1589if $ac_init_version; then
1590 cat <<\_ACEOF
f48dfe41 1591gas configure 2.32.51
d0ac1c44 1592generated by GNU Autoconf 2.69
c8615825 1593
d0ac1c44 1594Copyright (C) 2012 Free Software Foundation, Inc.
13b2be9c
DJ
1595This configure script is free software; the Free Software Foundation
1596gives unlimited permission to copy, distribute and modify it.
1597_ACEOF
81ecdfbb 1598 exit
13b2be9c 1599fi
c8615825 1600
81ecdfbb
RW
1601## ------------------------ ##
1602## Autoconf initialization. ##
1603## ------------------------ ##
c8615825 1604
81ecdfbb
RW
1605# ac_fn_c_try_compile LINENO
1606# --------------------------
1607# Try to compile conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_compile ()
13b2be9c 1609{
81ecdfbb
RW
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 rm -f conftest.$ac_objext
1612 if { { ac_try="$ac_compile"
1613case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_compile") 2>conftest.err
1620 ac_status=$?
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1625 fi
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && {
1628 test -z "$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1630 } && test -s conftest.$ac_objext; then :
1631 ac_retval=0
1632else
1633 $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
13b2be9c 1635
81ecdfbb
RW
1636 ac_retval=1
1637fi
d0ac1c44
SM
1638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639 as_fn_set_status $ac_retval
13b2be9c 1640
81ecdfbb 1641} # ac_fn_c_try_compile
13b2be9c 1642
81ecdfbb
RW
1643# ac_fn_c_try_link LINENO
1644# -----------------------
1645# Try to link conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_c_try_link ()
1647{
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext conftest$ac_exeext
1650 if { { ac_try="$ac_link"
1651case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_link") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest$ac_exeext && {
1669 test "$cross_compiling" = yes ||
d0ac1c44 1670 test -x conftest$ac_exeext
81ecdfbb
RW
1671 }; then :
1672 ac_retval=0
1673else
1674 $as_echo "$as_me: failed program was:" >&5
1675sed 's/^/| /' conftest.$ac_ext >&5
1676
1677 ac_retval=1
1678fi
1679 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1680 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1681 # interfere with the next link command; also delete a directory that is
1682 # left behind by Apple's compiler. We do this before executing the actions.
1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
81ecdfbb
RW
1686
1687} # ac_fn_c_try_link
1688
1689# ac_fn_c_try_cpp LINENO
1690# ----------------------
1691# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_c_try_cpp ()
1693{
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_cpp conftest.$ac_ext"
1696case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1710 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 }; then :
1714 ac_retval=0
1715else
1716 $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719 ac_retval=1
1720fi
d0ac1c44
SM
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
81ecdfbb
RW
1723
1724} # ac_fn_c_try_cpp
1725
1726# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1727# -------------------------------------------------------
1728# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1729# the include files in INCLUDES and setting the cache variable VAR
1730# accordingly.
1731ac_fn_c_check_header_mongrel ()
1732{
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1734 if eval \${$3+:} false; then :
81ecdfbb
RW
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1736$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1737if eval \${$3+:} false; then :
81ecdfbb
RW
1738 $as_echo_n "(cached) " >&6
1739fi
1740eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742$as_echo "$ac_res" >&6; }
1743else
1744 # Is the header compilable?
1745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1746$as_echo_n "checking $2 usability... " >&6; }
1747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748/* end confdefs.h. */
1749$4
1750#include <$2>
1751_ACEOF
1752if ac_fn_c_try_compile "$LINENO"; then :
1753 ac_header_compiler=yes
1754else
1755 ac_header_compiler=no
1756fi
1757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1759$as_echo "$ac_header_compiler" >&6; }
1760
1761# Is the header present?
1762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1763$as_echo_n "checking $2 presence... " >&6; }
1764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h. */
1766#include <$2>
1767_ACEOF
1768if ac_fn_c_try_cpp "$LINENO"; then :
1769 ac_header_preproc=yes
1770else
1771 ac_header_preproc=no
1772fi
d0ac1c44 1773rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1775$as_echo "$ac_header_preproc" >&6; }
1776
1777# So? What about this header?
1778case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1779 yes:no: )
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1781$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1783$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1784 ;;
1785 no:yes:* )
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1787$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1789$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1791$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1793$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1795$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796 ;;
1797esac
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1800if eval \${$3+:} false; then :
81ecdfbb
RW
1801 $as_echo_n "(cached) " >&6
1802else
1803 eval "$3=\$ac_header_compiler"
1804fi
1805eval ac_res=\$$3
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1807$as_echo "$ac_res" >&6; }
1808fi
d0ac1c44 1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1810
1811} # ac_fn_c_check_header_mongrel
1812
1813# ac_fn_c_try_run LINENO
1814# ----------------------
1815# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1816# that executables *can* be run.
1817ac_fn_c_try_run ()
1818{
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 if { { ac_try="$ac_link"
1821case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_link") 2>&5
1828 ac_status=$?
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1831 { { case "(($ac_try" in
1832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1833 *) ac_try_echo=$ac_try;;
1834esac
1835eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836$as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_try") 2>&5
1838 ac_status=$?
1839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1840 test $ac_status = 0; }; }; then :
1841 ac_retval=0
1842else
1843 $as_echo "$as_me: program exited with status $ac_status" >&5
1844 $as_echo "$as_me: failed program was:" >&5
1845sed 's/^/| /' conftest.$ac_ext >&5
1846
1847 ac_retval=$ac_status
1848fi
1849 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851 as_fn_set_status $ac_retval
81ecdfbb
RW
1852
1853} # ac_fn_c_try_run
1854
1855# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1856# -------------------------------------------------------
1857# Tests whether HEADER exists and can be compiled using the include files in
1858# INCLUDES, setting the cache variable VAR accordingly.
1859ac_fn_c_check_header_compile ()
1860{
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1864if eval \${$3+:} false; then :
81ecdfbb
RW
1865 $as_echo_n "(cached) " >&6
1866else
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h. */
1869$4
1870#include <$2>
1871_ACEOF
1872if ac_fn_c_try_compile "$LINENO"; then :
1873 eval "$3=yes"
1874else
1875 eval "$3=no"
1876fi
1877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1878fi
1879eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881$as_echo "$ac_res" >&6; }
d0ac1c44 1882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1883
1884} # ac_fn_c_check_header_compile
1885
1886# ac_fn_c_check_func LINENO FUNC VAR
1887# ----------------------------------
1888# Tests whether FUNC exists, setting the cache variable VAR accordingly
1889ac_fn_c_check_func ()
1890{
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1894if eval \${$3+:} false; then :
81ecdfbb
RW
1895 $as_echo_n "(cached) " >&6
1896else
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898/* end confdefs.h. */
1899/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1901#define $2 innocuous_$2
1902
1903/* System header to define __stub macros and hopefully few prototypes,
1904 which can conflict with char $2 (); below.
1905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1906 <limits.h> exists even on freestanding compilers. */
1907
1908#ifdef __STDC__
1909# include <limits.h>
1910#else
1911# include <assert.h>
1912#endif
1913
1914#undef $2
1915
1916/* Override any GCC internal prototype to avoid an error.
1917 Use char because int might match the return type of a GCC
1918 builtin and then its argument prototype would still apply. */
1919#ifdef __cplusplus
1920extern "C"
1921#endif
1922char $2 ();
1923/* The GNU C library defines this for functions which it implements
1924 to always fail with ENOSYS. Some functions are actually named
1925 something starting with __ and the normal name is an alias. */
1926#if defined __stub_$2 || defined __stub___$2
1927choke me
1928#endif
1929
1930int
1931main ()
1932{
1933return $2 ();
1934 ;
1935 return 0;
1936}
1937_ACEOF
1938if ac_fn_c_try_link "$LINENO"; then :
1939 eval "$3=yes"
1940else
1941 eval "$3=no"
1942fi
1943rm -f core conftest.err conftest.$ac_objext \
1944 conftest$ac_exeext conftest.$ac_ext
1945fi
1946eval ac_res=\$$3
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1948$as_echo "$ac_res" >&6; }
d0ac1c44 1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1950
1951} # ac_fn_c_check_func
1952
d0ac1c44
SM
1953# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1954# -------------------------------------------
1955# Tests whether TYPE exists after having included INCLUDES, setting cache
1956# variable VAR accordingly.
1957ac_fn_c_check_type ()
1958{
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1961$as_echo_n "checking for $2... " >&6; }
1962if eval \${$3+:} false; then :
1963 $as_echo_n "(cached) " >&6
1964else
1965 eval "$3=no"
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967/* end confdefs.h. */
1968$4
1969int
1970main ()
1971{
1972if (sizeof ($2))
1973 return 0;
1974 ;
1975 return 0;
1976}
1977_ACEOF
1978if ac_fn_c_try_compile "$LINENO"; then :
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980/* end confdefs.h. */
1981$4
1982int
1983main ()
1984{
1985if (sizeof (($2)))
1986 return 0;
1987 ;
1988 return 0;
1989}
1990_ACEOF
1991if ac_fn_c_try_compile "$LINENO"; then :
1992
1993else
1994 eval "$3=yes"
1995fi
1996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997fi
1998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999fi
2000eval ac_res=\$$3
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002$as_echo "$ac_res" >&6; }
2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004
2005} # ac_fn_c_check_type
2006
2007# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2008# ---------------------------------------------
2009# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2010# accordingly.
81ecdfbb
RW
2011ac_fn_c_check_decl ()
2012{
2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
360cfc9c
AM
2014 as_decl_name=`echo $2|sed 's/ *(.*//'`
2015 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2017$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d0ac1c44 2018if eval \${$3+:} false; then :
81ecdfbb
RW
2019 $as_echo_n "(cached) " >&6
2020else
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022/* end confdefs.h. */
2023$4
2024int
2025main ()
2026{
360cfc9c
AM
2027#ifndef $as_decl_name
2028#ifdef __cplusplus
2029 (void) $as_decl_use;
2030#else
2031 (void) $as_decl_name;
2032#endif
81ecdfbb
RW
2033#endif
2034
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_compile "$LINENO"; then :
2040 eval "$3=yes"
2041else
2042 eval "$3=no"
2043fi
2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045fi
2046eval ac_res=\$$3
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048$as_echo "$ac_res" >&6; }
d0ac1c44 2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
2050
2051} # ac_fn_c_check_decl
2052cat >config.log <<_ACEOF
2053This file contains any messages produced by compilers while
2054running configure, to aid debugging if configure makes a mistake.
2055
f48dfe41 2056It was created by gas $as_me 2.32.51, which was
d0ac1c44 2057generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
2058
2059 $ $0 $@
2060
2061_ACEOF
2062exec 5>>config.log
2063{
2064cat <<_ASUNAME
2065## --------- ##
2066## Platform. ##
2067## --------- ##
2068
2069hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2070uname -m = `(uname -m) 2>/dev/null || echo unknown`
2071uname -r = `(uname -r) 2>/dev/null || echo unknown`
2072uname -s = `(uname -s) 2>/dev/null || echo unknown`
2073uname -v = `(uname -v) 2>/dev/null || echo unknown`
2074
2075/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2076/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2077
2078/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
13b2be9c
DJ
2079/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2080/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
81ecdfbb 2081/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
13b2be9c
DJ
2082/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2083/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2084/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2085
2086_ASUNAME
2087
2088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2089for as_dir in $PATH
2090do
2091 IFS=$as_save_IFS
2092 test -z "$as_dir" && as_dir=.
81ecdfbb
RW
2093 $as_echo "PATH: $as_dir"
2094 done
2095IFS=$as_save_IFS
9b2b7d69 2096
13b2be9c 2097} >&5
6840198f 2098
13b2be9c 2099cat >&5 <<_ACEOF
c8615825 2100
9b2b7d69 2101
13b2be9c
DJ
2102## ----------- ##
2103## Core tests. ##
2104## ----------- ##
87ccc1b0 2105
13b2be9c 2106_ACEOF
9b2b7d69 2107
13b2be9c
DJ
2108
2109# Keep a trace of the command line.
2110# Strip out --no-create and --no-recursion so they do not pile up.
2111# Strip out --silent because we don't want to record it for future runs.
2112# Also quote any args containing shell meta-characters.
2113# Make two passes to allow for proper duplicate-argument suppression.
2114ac_configure_args=
2115ac_configure_args0=
2116ac_configure_args1=
13b2be9c
DJ
2117ac_must_keep_next=false
2118for ac_pass in 1 2
2119do
2120 for ac_arg
2121 do
2122 case $ac_arg in
2123 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2125 | -silent | --silent | --silen | --sile | --sil)
2126 continue ;;
81ecdfbb
RW
2127 *\'*)
2128 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2129 esac
2130 case $ac_pass in
81ecdfbb 2131 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
13b2be9c 2132 2)
81ecdfbb 2133 as_fn_append ac_configure_args1 " '$ac_arg'"
13b2be9c 2134 if test $ac_must_keep_next = true; then
ab509236 2135 ac_must_keep_next=false # Got value, back to normal.
13b2be9c 2136 else
ab509236
L
2137 case $ac_arg in
2138 *=* | --config-cache | -C | -disable-* | --disable-* \
2139 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2140 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2141 | -with-* | --with-* | -without-* | --without-* | --x)
2142 case "$ac_configure_args0 " in
2143 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2144 esac
2145 ;;
2146 -* ) ac_must_keep_next=true ;;
2147 esac
13b2be9c 2148 fi
81ecdfbb 2149 as_fn_append ac_configure_args " '$ac_arg'"
c8615825
AM
2150 ;;
2151 esac
2152 done
13b2be9c 2153done
81ecdfbb
RW
2154{ ac_configure_args0=; unset ac_configure_args0;}
2155{ ac_configure_args1=; unset ac_configure_args1;}
13b2be9c
DJ
2156
2157# When interrupted or exit'd, cleanup temporary files, and complete
2158# config.log. We remove comments because anyway the quotes in there
2159# would cause problems or look ugly.
81ecdfbb
RW
2160# WARNING: Use '\'' to represent an apostrophe within the trap.
2161# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
13b2be9c
DJ
2162trap 'exit_status=$?
2163 # Save into config.log some information that might help in debugging.
2164 {
2165 echo
2166
d0ac1c44 2167 $as_echo "## ---------------- ##
13b2be9c 2168## Cache variables. ##
d0ac1c44 2169## ---------------- ##"
13b2be9c
DJ
2170 echo
2171 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2172(
2173 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2174 eval ac_val=\$$ac_var
2175 case $ac_val in #(
2176 *${as_nl}*)
2177 case $ac_var in #(
2178 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2179$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2180 esac
2181 case $ac_var in #(
2182 _ | IFS | as_nl) ;; #(
2183 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2184 *) { eval $ac_var=; unset $ac_var;} ;;
2185 esac ;;
2186 esac
2187 done
13b2be9c 2188 (set) 2>&1 |
81ecdfbb
RW
2189 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2190 *${as_nl}ac_space=\ *)
13b2be9c 2191 sed -n \
81ecdfbb
RW
2192 "s/'\''/'\''\\\\'\'''\''/g;
2193 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2194 ;; #(
13b2be9c 2195 *)
81ecdfbb 2196 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 2197 ;;
81ecdfbb
RW
2198 esac |
2199 sort
2200)
13b2be9c
DJ
2201 echo
2202
d0ac1c44 2203 $as_echo "## ----------------- ##
13b2be9c 2204## Output variables. ##
d0ac1c44 2205## ----------------- ##"
13b2be9c
DJ
2206 echo
2207 for ac_var in $ac_subst_vars
2208 do
81ecdfbb
RW
2209 eval ac_val=\$$ac_var
2210 case $ac_val in
2211 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2212 esac
2213 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2214 done | sort
2215 echo
2216
2217 if test -n "$ac_subst_files"; then
d0ac1c44 2218 $as_echo "## ------------------- ##
81ecdfbb 2219## File substitutions. ##
d0ac1c44 2220## ------------------- ##"
13b2be9c
DJ
2221 echo
2222 for ac_var in $ac_subst_files
2223 do
81ecdfbb
RW
2224 eval ac_val=\$$ac_var
2225 case $ac_val in
2226 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2227 esac
2228 $as_echo "$ac_var='\''$ac_val'\''"
13b2be9c
DJ
2229 done | sort
2230 echo
2231 fi
2232
2233 if test -s confdefs.h; then
d0ac1c44 2234 $as_echo "## ----------- ##
13b2be9c 2235## confdefs.h. ##
d0ac1c44 2236## ----------- ##"
13b2be9c 2237 echo
81ecdfbb 2238 cat confdefs.h
13b2be9c
DJ
2239 echo
2240 fi
2241 test "$ac_signal" != 0 &&
81ecdfbb
RW
2242 $as_echo "$as_me: caught signal $ac_signal"
2243 $as_echo "$as_me: exit $exit_status"
13b2be9c 2244 } >&5
81ecdfbb
RW
2245 rm -f core *.core core.conftest.* &&
2246 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
13b2be9c 2247 exit $exit_status
81ecdfbb 2248' 0
13b2be9c 2249for ac_signal in 1 2 13 15; do
81ecdfbb 2250 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
13b2be9c
DJ
2251done
2252ac_signal=0
2253
2254# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2255rm -f -r conftest* confdefs.h
2256
2257$as_echo "/* confdefs.h */" > confdefs.h
13b2be9c
DJ
2258
2259# Predefined preprocessor variables.
2260
2261cat >>confdefs.h <<_ACEOF
2262#define PACKAGE_NAME "$PACKAGE_NAME"
2263_ACEOF
2264
13b2be9c
DJ
2265cat >>confdefs.h <<_ACEOF
2266#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2267_ACEOF
2268
13b2be9c
DJ
2269cat >>confdefs.h <<_ACEOF
2270#define PACKAGE_VERSION "$PACKAGE_VERSION"
2271_ACEOF
2272
13b2be9c
DJ
2273cat >>confdefs.h <<_ACEOF
2274#define PACKAGE_STRING "$PACKAGE_STRING"
2275_ACEOF
2276
13b2be9c
DJ
2277cat >>confdefs.h <<_ACEOF
2278#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2279_ACEOF
2280
81ecdfbb
RW
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_URL "$PACKAGE_URL"
2283_ACEOF
2284
13b2be9c
DJ
2285
2286# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2287# Prefer an explicitly selected file to automatically selected ones.
2288ac_site_file1=NONE
2289ac_site_file2=NONE
2290if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2291 # We do not want a PATH search for config.site.
2292 case $CONFIG_SITE in #((
2293 -*) ac_site_file1=./$CONFIG_SITE;;
2294 */*) ac_site_file1=$CONFIG_SITE;;
2295 *) ac_site_file1=./$CONFIG_SITE;;
2296 esac
81ecdfbb
RW
2297elif test "x$prefix" != xNONE; then
2298 ac_site_file1=$prefix/share/config.site
2299 ac_site_file2=$prefix/etc/config.site
2300else
2301 ac_site_file1=$ac_default_prefix/share/config.site
2302 ac_site_file2=$ac_default_prefix/etc/config.site
2303fi
2304for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2305do
2306 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2307 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2309$as_echo "$as_me: loading site script $ac_site_file" >&6;}
13b2be9c 2310 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2311 . "$ac_site_file" \
2312 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2314as_fn_error $? "failed to load site script $ac_site_file
2315See \`config.log' for more details" "$LINENO" 5; }
13b2be9c
DJ
2316 fi
2317done
2318
2319if test -r "$cache_file"; then
d0ac1c44
SM
2320 # Some versions of bash will fail to source /dev/null (special files
2321 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2322 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2324$as_echo "$as_me: loading cache $cache_file" >&6;}
13b2be9c 2325 case $cache_file in
81ecdfbb
RW
2326 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2327 *) . "./$cache_file";;
13b2be9c
DJ
2328 esac
2329 fi
2330else
81ecdfbb
RW
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2332$as_echo "$as_me: creating cache $cache_file" >&6;}
13b2be9c
DJ
2333 >$cache_file
2334fi
2335
2336# Check that the precious variables saved in the cache have kept the same
2337# value.
2338ac_cache_corrupted=false
81ecdfbb 2339for ac_var in $ac_precious_vars; do
13b2be9c
DJ
2340 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2341 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2342 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2343 eval ac_new_val=\$ac_env_${ac_var}_value
13b2be9c
DJ
2344 case $ac_old_set,$ac_new_set in
2345 set,)
81ecdfbb
RW
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2347$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
13b2be9c
DJ
2348 ac_cache_corrupted=: ;;
2349 ,set)
81ecdfbb
RW
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2351$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
13b2be9c
DJ
2352 ac_cache_corrupted=: ;;
2353 ,);;
2354 *)
2355 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2356 # differences in whitespace do not lead to failure.
2357 ac_old_val_w=`echo x $ac_old_val`
2358 ac_new_val_w=`echo x $ac_new_val`
2359 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2361$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2362 ac_cache_corrupted=:
2363 else
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2365$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2366 eval $ac_var=\$ac_old_val
2367 fi
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2369$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2371$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
13b2be9c
DJ
2372 fi;;
2373 esac
2374 # Pass precious variables to config.status.
2375 if test "$ac_new_set" = set; then
2376 case $ac_new_val in
81ecdfbb 2377 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
13b2be9c
DJ
2378 *) ac_arg=$ac_var=$ac_new_val ;;
2379 esac
2380 case " $ac_configure_args " in
2381 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2382 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
13b2be9c
DJ
2383 esac
2384 fi
2385done
2386if $ac_cache_corrupted; then
81ecdfbb
RW
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2390$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2391 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
13b2be9c 2392fi
81ecdfbb
RW
2393## -------------------- ##
2394## Main body of script. ##
2395## -------------------- ##
13b2be9c
DJ
2396
2397ac_ext=c
2398ac_cpp='$CPP $CPPFLAGS'
2399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2401ac_compiler_gnu=$ac_cv_c_compiler_gnu
2402
2403
2404
13b2be9c 2405
da594c4a 2406
13b2be9c
DJ
2407
2408
2409ac_aux_dir=
81ecdfbb 2410for ac_dir in .. "$srcdir"/..; do
d0ac1c44
SM
2411 if test -f "$ac_dir/install-sh"; then
2412 ac_aux_dir=$ac_dir
2413 ac_install_sh="$ac_aux_dir/install-sh -c"
2414 break
2415 elif test -f "$ac_dir/install.sh"; then
2416 ac_aux_dir=$ac_dir
2417 ac_install_sh="$ac_aux_dir/install.sh -c"
2418 break
2419 elif test -f "$ac_dir/shtool"; then
2420 ac_aux_dir=$ac_dir
2421 ac_install_sh="$ac_aux_dir/shtool install -c"
2422 break
2423 fi
13b2be9c
DJ
2424done
2425if test -z "$ac_aux_dir"; then
d0ac1c44 2426 as_fn_error $? "cannot find install-sh, install.sh, or shtool in .. \"$srcdir\"/.." "$LINENO" 5
13b2be9c 2427fi
81ecdfbb
RW
2428
2429# These three variables are undocumented and unsupported,
2430# and are intended to be withdrawn in a future Autoconf release.
2431# They can cause serious problems if a builder's source tree is in a directory
2432# whose full name contains unusual characters.
2433ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2434ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2435ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2436
13b2be9c
DJ
2437
2438# Make sure we can run config.sub.
81ecdfbb 2439$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d0ac1c44 2440 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
81ecdfbb
RW
2441
2442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2443$as_echo_n "checking build system type... " >&6; }
d0ac1c44 2444if ${ac_cv_build+:} false; then :
81ecdfbb
RW
2445 $as_echo_n "(cached) " >&6
2446else
2447 ac_build_alias=$build_alias
2448test "x$ac_build_alias" = x &&
2449 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2450test "x$ac_build_alias" = x &&
d0ac1c44 2451 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
81ecdfbb 2452ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d0ac1c44 2453 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
81ecdfbb
RW
2454
2455fi
2456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2457$as_echo "$ac_cv_build" >&6; }
2458case $ac_cv_build in
2459*-*-*) ;;
d0ac1c44 2460*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
81ecdfbb 2461esac
13b2be9c 2462build=$ac_cv_build
81ecdfbb
RW
2463ac_save_IFS=$IFS; IFS='-'
2464set x $ac_cv_build
2465shift
2466build_cpu=$1
2467build_vendor=$2
2468shift; shift
2469# Remember, the first character of IFS is used to create $*,
2470# except with old shells:
2471build_os=$*
2472IFS=$ac_save_IFS
2473case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2474
2475
81ecdfbb
RW
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2477$as_echo_n "checking host system type... " >&6; }
d0ac1c44 2478if ${ac_cv_host+:} false; then :
81ecdfbb 2479 $as_echo_n "(cached) " >&6
13b2be9c 2480else
81ecdfbb
RW
2481 if test "x$host_alias" = x; then
2482 ac_cv_host=$ac_cv_build
2483else
2484 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d0ac1c44 2485 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
81ecdfbb 2486fi
13b2be9c
DJ
2487
2488fi
81ecdfbb
RW
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2490$as_echo "$ac_cv_host" >&6; }
2491case $ac_cv_host in
2492*-*-*) ;;
d0ac1c44 2493*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
81ecdfbb 2494esac
13b2be9c 2495host=$ac_cv_host
81ecdfbb
RW
2496ac_save_IFS=$IFS; IFS='-'
2497set x $ac_cv_host
2498shift
2499host_cpu=$1
2500host_vendor=$2
2501shift; shift
2502# Remember, the first character of IFS is used to create $*,
2503# except with old shells:
2504host_os=$*
2505IFS=$ac_save_IFS
2506case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2507
2508
81ecdfbb
RW
2509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2510$as_echo_n "checking target system type... " >&6; }
d0ac1c44 2511if ${ac_cv_target+:} false; then :
81ecdfbb
RW
2512 $as_echo_n "(cached) " >&6
2513else
2514 if test "x$target_alias" = x; then
2515 ac_cv_target=$ac_cv_host
13b2be9c 2516else
81ecdfbb 2517 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
d0ac1c44 2518 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
81ecdfbb 2519fi
13b2be9c
DJ
2520
2521fi
81ecdfbb
RW
2522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2523$as_echo "$ac_cv_target" >&6; }
2524case $ac_cv_target in
2525*-*-*) ;;
d0ac1c44 2526*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
81ecdfbb 2527esac
13b2be9c 2528target=$ac_cv_target
81ecdfbb
RW
2529ac_save_IFS=$IFS; IFS='-'
2530set x $ac_cv_target
2531shift
2532target_cpu=$1
2533target_vendor=$2
2534shift; shift
2535# Remember, the first character of IFS is used to create $*,
2536# except with old shells:
2537target_os=$*
2538IFS=$ac_save_IFS
2539case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
13b2be9c
DJ
2540
2541
2542# The aliases save the names the user supplied, while $host etc.
2543# will get canonicalized.
2544test -n "$target_alias" &&
2545 test "$program_prefix$program_suffix$program_transform_name" = \
2546 NONENONEs,x,x, &&
2547 program_prefix=${target_alias}-
d0ac1c44
SM
2548# Expand $ac_aux_dir to an absolute path.
2549am_aux_dir=`cd "$ac_aux_dir" && pwd`
2550
13b2be9c
DJ
2551ac_ext=c
2552ac_cpp='$CPP $CPPFLAGS'
2553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2555ac_compiler_gnu=$ac_cv_c_compiler_gnu
2556if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2558set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2561if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2562 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2563else
2564 if test -n "$CC"; then
2565 ac_cv_prog_CC="$CC" # Let the user override the test.
2566else
2567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568for as_dir in $PATH
2569do
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
81ecdfbb 2572 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13b2be9c 2574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 2575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2576 break 2
2577 fi
2578done
81ecdfbb
RW
2579 done
2580IFS=$as_save_IFS
13b2be9c
DJ
2581
2582fi
2583fi
2584CC=$ac_cv_prog_CC
2585if test -n "$CC"; then
81ecdfbb
RW
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2587$as_echo "$CC" >&6; }
13b2be9c 2588else
81ecdfbb
RW
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590$as_echo "no" >&6; }
13b2be9c
DJ
2591fi
2592
81ecdfbb 2593
13b2be9c
DJ
2594fi
2595if test -z "$ac_cv_prog_CC"; then
2596 ac_ct_CC=$CC
2597 # Extract the first word of "gcc", so it can be a program name with args.
2598set dummy gcc; ac_word=$2
81ecdfbb
RW
2599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2601if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 2602 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2603else
2604 if test -n "$ac_ct_CC"; then
2605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606else
2607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608for as_dir in $PATH
2609do
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
81ecdfbb 2612 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13b2be9c 2614 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2616 break 2
2617 fi
2618done
81ecdfbb
RW
2619 done
2620IFS=$as_save_IFS
13b2be9c
DJ
2621
2622fi
2623fi
2624ac_ct_CC=$ac_cv_prog_ac_ct_CC
2625if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2627$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2628else
81ecdfbb
RW
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630$as_echo "no" >&6; }
13b2be9c
DJ
2631fi
2632
81ecdfbb
RW
2633 if test "x$ac_ct_CC" = x; then
2634 CC=""
2635 else
2636 case $cross_compiling:$ac_tool_warned in
2637yes:)
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2640ac_tool_warned=yes ;;
2641esac
2642 CC=$ac_ct_CC
2643 fi
13b2be9c
DJ
2644else
2645 CC="$ac_cv_prog_CC"
2646fi
2647
2648if test -z "$CC"; then
81ecdfbb
RW
2649 if test -n "$ac_tool_prefix"; then
2650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13b2be9c 2651set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
2652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2653$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2654if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2655 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2656else
2657 if test -n "$CC"; then
2658 ac_cv_prog_CC="$CC" # Let the user override the test.
2659else
2660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH
2662do
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
81ecdfbb 2665 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13b2be9c 2667 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 2668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2669 break 2
2670 fi
2671done
81ecdfbb
RW
2672 done
2673IFS=$as_save_IFS
13b2be9c
DJ
2674
2675fi
2676fi
2677CC=$ac_cv_prog_CC
2678if test -n "$CC"; then
81ecdfbb
RW
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2680$as_echo "$CC" >&6; }
13b2be9c 2681else
81ecdfbb
RW
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2683$as_echo "no" >&6; }
13b2be9c
DJ
2684fi
2685
13b2be9c 2686
81ecdfbb 2687 fi
13b2be9c
DJ
2688fi
2689if test -z "$CC"; then
2690 # Extract the first word of "cc", so it can be a program name with args.
2691set dummy cc; ac_word=$2
81ecdfbb
RW
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2693$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2694if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2695 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2696else
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2699else
2700 ac_prog_rejected=no
2701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2702for as_dir in $PATH
2703do
2704 IFS=$as_save_IFS
2705 test -z "$as_dir" && as_dir=.
81ecdfbb 2706 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13b2be9c
DJ
2708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2709 ac_prog_rejected=yes
2710 continue
2711 fi
2712 ac_cv_prog_CC="cc"
81ecdfbb 2713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2714 break 2
2715 fi
2716done
81ecdfbb
RW
2717 done
2718IFS=$as_save_IFS
2719
13b2be9c
DJ
2720if test $ac_prog_rejected = yes; then
2721 # We found a bogon in the path, so make sure we never use it.
2722 set dummy $ac_cv_prog_CC
2723 shift
2724 if test $# != 0; then
2725 # We chose a different compiler from the bogus one.
2726 # However, it has the same basename, so the bogon will be chosen
2727 # first if we set CC to just the basename; use the full file name.
2728 shift
2729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2730 fi
2731fi
2732fi
2733fi
2734CC=$ac_cv_prog_CC
2735if test -n "$CC"; then
81ecdfbb
RW
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2737$as_echo "$CC" >&6; }
13b2be9c 2738else
81ecdfbb
RW
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
13b2be9c
DJ
2741fi
2742
81ecdfbb 2743
13b2be9c
DJ
2744fi
2745if test -z "$CC"; then
2746 if test -n "$ac_tool_prefix"; then
81ecdfbb 2747 for ac_prog in cl.exe
13b2be9c
DJ
2748 do
2749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2750set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
2751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2753if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 2754 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2755else
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2758else
2759as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760for as_dir in $PATH
2761do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
81ecdfbb 2764 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13b2be9c 2766 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 2767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2768 break 2
2769 fi
2770done
81ecdfbb
RW
2771 done
2772IFS=$as_save_IFS
13b2be9c
DJ
2773
2774fi
2775fi
2776CC=$ac_cv_prog_CC
2777if test -n "$CC"; then
81ecdfbb
RW
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2779$as_echo "$CC" >&6; }
13b2be9c 2780else
81ecdfbb
RW
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782$as_echo "no" >&6; }
13b2be9c
DJ
2783fi
2784
81ecdfbb 2785
13b2be9c
DJ
2786 test -n "$CC" && break
2787 done
2788fi
2789if test -z "$CC"; then
2790 ac_ct_CC=$CC
81ecdfbb 2791 for ac_prog in cl.exe
13b2be9c
DJ
2792do
2793 # Extract the first word of "$ac_prog", so it can be a program name with args.
2794set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2796$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2797if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 2798 $as_echo_n "(cached) " >&6
13b2be9c
DJ
2799else
2800 if test -n "$ac_ct_CC"; then
2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2802else
2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804for as_dir in $PATH
2805do
2806 IFS=$as_save_IFS
2807 test -z "$as_dir" && as_dir=.
81ecdfbb 2808 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13b2be9c 2810 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
2812 break 2
2813 fi
2814done
81ecdfbb
RW
2815 done
2816IFS=$as_save_IFS
13b2be9c
DJ
2817
2818fi
2819fi
2820ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821if test -n "$ac_ct_CC"; then
81ecdfbb
RW
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2823$as_echo "$ac_ct_CC" >&6; }
13b2be9c 2824else
81ecdfbb
RW
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2826$as_echo "no" >&6; }
13b2be9c
DJ
2827fi
2828
81ecdfbb 2829
13b2be9c
DJ
2830 test -n "$ac_ct_CC" && break
2831done
2832
81ecdfbb
RW
2833 if test "x$ac_ct_CC" = x; then
2834 CC=""
2835 else
2836 case $cross_compiling:$ac_tool_warned in
2837yes:)
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2840ac_tool_warned=yes ;;
2841esac
2842 CC=$ac_ct_CC
2843 fi
13b2be9c
DJ
2844fi
2845
2846fi
2847
2848
81ecdfbb
RW
2849test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2851as_fn_error $? "no acceptable C compiler found in \$PATH
2852See \`config.log' for more details" "$LINENO" 5; }
13b2be9c
DJ
2853
2854# Provide some information about the compiler.
81ecdfbb
RW
2855$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2856set X $ac_compile
2857ac_compiler=$2
2858for ac_option in --version -v -V -qversion; do
2859 { { ac_try="$ac_compiler $ac_option >&5"
2860case "(($ac_try" in
2861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2862 *) ac_try_echo=$ac_try;;
2863esac
2864eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2865$as_echo "$ac_try_echo"; } >&5
2866 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13b2be9c 2867 ac_status=$?
81ecdfbb
RW
2868 if test -s conftest.err; then
2869 sed '10a\
2870... rest of stderr output deleted ...
2871 10q' conftest.err >conftest.er1
2872 cat conftest.er1 >&5
81ecdfbb 2873 fi
d0ac1c44 2874 rm -f conftest.er1 conftest.err
81ecdfbb
RW
2875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2876 test $ac_status = 0; }
2877done
13b2be9c 2878
81ecdfbb 2879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
2880/* end confdefs.h. */
2881
2882int
2883main ()
2884{
2885
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890ac_clean_files_save=$ac_clean_files
d0ac1c44 2891ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
13b2be9c
DJ
2892# Try to create an executable without -o first, disregard a.out.
2893# It will help us diagnose broken compilers, and finding out an intuition
2894# of exeext.
d0ac1c44
SM
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2896$as_echo_n "checking whether the C compiler works... " >&6; }
81ecdfbb
RW
2897ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2898
2899# The possible output files:
2900ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2901
2902ac_rmfiles=
2903for ac_file in $ac_files
2904do
2905 case $ac_file in
2906 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2907 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2908 esac
2909done
2910rm -f $ac_rmfiles
2911
2912if { { ac_try="$ac_link_default"
2913case "(($ac_try" in
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2916esac
2917eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2918$as_echo "$ac_try_echo"; } >&5
2919 (eval "$ac_link_default") 2>&5
2920 ac_status=$?
2921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2922 test $ac_status = 0; }; then :
2923 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2924# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2925# in a Makefile. We should not override ac_cv_exeext if it was cached,
2926# so that the user can short-circuit this test for compilers unknown to
2927# Autoconf.
2928for ac_file in $ac_files ''
13b2be9c
DJ
2929do
2930 test -f "$ac_file" || continue
2931 case $ac_file in
81ecdfbb 2932 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
ab509236 2933 ;;
13b2be9c 2934 [ab].out )
ab509236
L
2935 # We found the default executable, but exeext='' is most
2936 # certainly right.
2937 break;;
13b2be9c 2938 *.* )
81ecdfbb
RW
2939 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2940 then :; else
2941 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2942 fi
2943 # We set ac_cv_exeext here because the later test for it is not
2944 # safe: cross compilers may not add the suffix if given an `-o'
2945 # argument, so we may need to know it at that point already.
2946 # Even if this section looks crufty: it has the advantage of
2947 # actually working.
ab509236 2948 break;;
13b2be9c 2949 * )
ab509236 2950 break;;
13b2be9c
DJ
2951 esac
2952done
81ecdfbb
RW
2953test "$ac_cv_exeext" = no && ac_cv_exeext=
2954
13b2be9c 2955else
81ecdfbb
RW
2956 ac_file=''
2957fi
81ecdfbb 2958if test -z "$ac_file"; then :
d0ac1c44
SM
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2960$as_echo "no" >&6; }
2961$as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
2962sed 's/^/| /' conftest.$ac_ext >&5
2963
81ecdfbb
RW
2964{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2966as_fn_error 77 "C compiler cannot create executables
2967See \`config.log' for more details" "$LINENO" 5; }
2968else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2970$as_echo "yes" >&6; }
13b2be9c 2971fi
d0ac1c44
SM
2972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2973$as_echo_n "checking for C compiler default output file name... " >&6; }
2974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2975$as_echo "$ac_file" >&6; }
13b2be9c 2976ac_exeext=$ac_cv_exeext
13b2be9c 2977
d0ac1c44 2978rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
13b2be9c 2979ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2981$as_echo_n "checking for suffix of executables... " >&6; }
2982if { { ac_try="$ac_link"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2988$as_echo "$ac_try_echo"; } >&5
2989 (eval "$ac_link") 2>&5
13b2be9c 2990 ac_status=$?
81ecdfbb
RW
2991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2992 test $ac_status = 0; }; then :
13b2be9c
DJ
2993 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2994# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2995# work properly (i.e., refer to `conftest.exe'), while it won't with
2996# `rm'.
2997for ac_file in conftest.exe conftest conftest.*; do
2998 test -f "$ac_file" || continue
2999 case $ac_file in
81ecdfbb 3000 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
13b2be9c 3001 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
ab509236 3002 break;;
13b2be9c
DJ
3003 * ) break;;
3004 esac
3005done
3006else
81ecdfbb
RW
3007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3008$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3009as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3010See \`config.log' for more details" "$LINENO" 5; }
13b2be9c 3011fi
d0ac1c44 3012rm -f conftest conftest$ac_cv_exeext
81ecdfbb
RW
3013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3014$as_echo "$ac_cv_exeext" >&6; }
13b2be9c
DJ
3015
3016rm -f conftest.$ac_ext
3017EXEEXT=$ac_cv_exeext
3018ac_exeext=$EXEEXT
d0ac1c44
SM
3019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020/* end confdefs.h. */
3021#include <stdio.h>
3022int
3023main ()
3024{
3025FILE *f = fopen ("conftest.out", "w");
3026 return ferror (f) || fclose (f) != 0;
3027
3028 ;
3029 return 0;
3030}
3031_ACEOF
3032ac_clean_files="$ac_clean_files conftest.out"
3033# Check that the compiler produces executables we can run. If not, either
3034# the compiler is broken, or we cross compile.
3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3036$as_echo_n "checking whether we are cross compiling... " >&6; }
3037if test "$cross_compiling" != yes; then
3038 { { ac_try="$ac_link"
3039case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042esac
3043eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3044$as_echo "$ac_try_echo"; } >&5
3045 (eval "$ac_link") 2>&5
3046 ac_status=$?
3047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3048 test $ac_status = 0; }
3049 if { ac_try='./conftest$ac_cv_exeext'
3050 { { case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
3054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055$as_echo "$ac_try_echo"; } >&5
3056 (eval "$ac_try") 2>&5
3057 ac_status=$?
3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059 test $ac_status = 0; }; }; then
3060 cross_compiling=no
3061 else
3062 if test "$cross_compiling" = maybe; then
3063 cross_compiling=yes
3064 else
3065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067as_fn_error $? "cannot run C compiled programs.
3068If you meant to cross compile, use \`--host'.
3069See \`config.log' for more details" "$LINENO" 5; }
3070 fi
3071 fi
3072fi
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3074$as_echo "$cross_compiling" >&6; }
3075
3076rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3077ac_clean_files=$ac_clean_files_save
81ecdfbb
RW
3078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3079$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 3080if ${ac_cv_objext+:} false; then :
81ecdfbb 3081 $as_echo_n "(cached) " >&6
13b2be9c 3082else
81ecdfbb 3083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3084/* end confdefs.h. */
3085
3086int
3087main ()
3088{
3089
3090 ;
3091 return 0;
3092}
3093_ACEOF
3094rm -f conftest.o conftest.obj
81ecdfbb
RW
3095if { { ac_try="$ac_compile"
3096case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099esac
3100eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101$as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_compile") 2>&5
3103 ac_status=$?
3104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105 test $ac_status = 0; }; then :
3106 for ac_file in conftest.o conftest.obj conftest.*; do
3107 test -f "$ac_file" || continue;
13b2be9c 3108 case $ac_file in
81ecdfbb 3109 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
13b2be9c
DJ
3110 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3111 break;;
3112 esac
3113done
3114else
81ecdfbb 3115 $as_echo "$as_me: failed program was:" >&5
13b2be9c
DJ
3116sed 's/^/| /' conftest.$ac_ext >&5
3117
81ecdfbb
RW
3118{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
3120as_fn_error $? "cannot compute suffix of object files: cannot compile
3121See \`config.log' for more details" "$LINENO" 5; }
13b2be9c 3122fi
13b2be9c
DJ
3123rm -f conftest.$ac_cv_objext conftest.$ac_ext
3124fi
81ecdfbb
RW
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3126$as_echo "$ac_cv_objext" >&6; }
13b2be9c
DJ
3127OBJEXT=$ac_cv_objext
3128ac_objext=$OBJEXT
81ecdfbb
RW
3129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3130$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 3131if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 3132 $as_echo_n "(cached) " >&6
13b2be9c 3133else
81ecdfbb 3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3135/* end confdefs.h. */
3136
3137int
3138main ()
3139{
3140#ifndef __GNUC__
3141 choke me
3142#endif
3143
3144 ;
3145 return 0;
3146}
3147_ACEOF
81ecdfbb 3148if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
3149 ac_compiler_gnu=yes
3150else
81ecdfbb 3151 ac_compiler_gnu=no
13b2be9c 3152fi
81ecdfbb 3153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c
DJ
3154ac_cv_c_compiler_gnu=$ac_compiler_gnu
3155
3156fi
81ecdfbb
RW
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3158$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3159if test $ac_compiler_gnu = yes; then
3160 GCC=yes
3161else
3162 GCC=
3163fi
13b2be9c
DJ
3164ac_test_CFLAGS=${CFLAGS+set}
3165ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3167$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3168if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
3169 $as_echo_n "(cached) " >&6
3170else
3171 ac_save_c_werror_flag=$ac_c_werror_flag
3172 ac_c_werror_flag=yes
3173 ac_cv_prog_cc_g=no
3174 CFLAGS="-g"
3175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3176/* end confdefs.h. */
3177
3178int
3179main ()
3180{
3181
3182 ;
3183 return 0;
3184}
3185_ACEOF
81ecdfbb 3186if ac_fn_c_try_compile "$LINENO"; then :
13b2be9c
DJ
3187 ac_cv_prog_cc_g=yes
3188else
81ecdfbb
RW
3189 CFLAGS=""
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191/* end confdefs.h. */
13b2be9c 3192
81ecdfbb
RW
3193int
3194main ()
3195{
3196
3197 ;
3198 return 0;
3199}
3200_ACEOF
3201if ac_fn_c_try_compile "$LINENO"; then :
3202
3203else
3204 ac_c_werror_flag=$ac_save_c_werror_flag
3205 CFLAGS="-g"
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207/* end confdefs.h. */
3208
3209int
3210main ()
3211{
3212
3213 ;
3214 return 0;
3215}
3216_ACEOF
3217if ac_fn_c_try_compile "$LINENO"; then :
3218 ac_cv_prog_cc_g=yes
3219fi
3220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3221fi
81ecdfbb 3222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13b2be9c 3223fi
81ecdfbb
RW
3224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 ac_c_werror_flag=$ac_save_c_werror_flag
3226fi
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3228$as_echo "$ac_cv_prog_cc_g" >&6; }
13b2be9c
DJ
3229if test "$ac_test_CFLAGS" = set; then
3230 CFLAGS=$ac_save_CFLAGS
3231elif test $ac_cv_prog_cc_g = yes; then
3232 if test "$GCC" = yes; then
3233 CFLAGS="-g -O2"
3234 else
3235 CFLAGS="-g"
3236 fi
3237else
3238 if test "$GCC" = yes; then
3239 CFLAGS="-O2"
3240 else
3241 CFLAGS=
3242 fi
3243fi
81ecdfbb
RW
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3245$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3246if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 3247 $as_echo_n "(cached) " >&6
13b2be9c 3248else
81ecdfbb 3249 ac_cv_prog_cc_c89=no
13b2be9c 3250ac_save_CC=$CC
81ecdfbb 3251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3252/* end confdefs.h. */
3253#include <stdarg.h>
3254#include <stdio.h>
d0ac1c44 3255struct stat;
13b2be9c
DJ
3256/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3257struct buf { int x; };
3258FILE * (*rcsopen) (struct buf *, struct stat *, int);
3259static char *e (p, i)
3260 char **p;
3261 int i;
3262{
3263 return p[i];
3264}
3265static char *f (char * (*g) (char **, int), char **p, ...)
3266{
3267 char *s;
3268 va_list v;
3269 va_start (v,p);
3270 s = g (p, va_arg (v,int));
3271 va_end (v);
3272 return s;
3273}
ab509236
L
3274
3275/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3276 function prototypes and stuff, but not '\xHH' hex character constants.
3277 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 3278 as 'x'. The following induces an error, until -std is added to get
ab509236
L
3279 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3280 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 3281 that's true only with -std. */
ab509236
L
3282int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3283
81ecdfbb
RW
3284/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3285 inside strings and character constants. */
3286#define FOO(x) 'x'
3287int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3288
13b2be9c
DJ
3289int test (int i, double x);
3290struct s1 {int (*f) (int a);};
3291struct s2 {int (*f) (double a);};
3292int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3293int argc;
3294char **argv;
3295int
3296main ()
3297{
3298return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3299 ;
3300 return 0;
3301}
3302_ACEOF
81ecdfbb
RW
3303for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3304 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13b2be9c
DJ
3305do
3306 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
3307 if ac_fn_c_try_compile "$LINENO"; then :
3308 ac_cv_prog_cc_c89=$ac_arg
13b2be9c 3309fi
81ecdfbb
RW
3310rm -f core conftest.err conftest.$ac_objext
3311 test "x$ac_cv_prog_cc_c89" != "xno" && break
13b2be9c 3312done
81ecdfbb 3313rm -f conftest.$ac_ext
13b2be9c
DJ
3314CC=$ac_save_CC
3315
3316fi
81ecdfbb
RW
3317# AC_CACHE_VAL
3318case "x$ac_cv_prog_cc_c89" in
3319 x)
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3321$as_echo "none needed" >&6; } ;;
3322 xno)
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3324$as_echo "unsupported" >&6; } ;;
13b2be9c 3325 *)
81ecdfbb
RW
3326 CC="$CC $ac_cv_prog_cc_c89"
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3328$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13b2be9c 3329esac
81ecdfbb 3330if test "x$ac_cv_prog_cc_c89" != xno; then :
13b2be9c 3331
13b2be9c
DJ
3332fi
3333
13b2be9c
DJ
3334ac_ext=c
3335ac_cpp='$CPP $CPPFLAGS'
3336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3338ac_compiler_gnu=$ac_cv_c_compiler_gnu
3339
d0ac1c44
SM
3340ac_ext=c
3341ac_cpp='$CPP $CPPFLAGS'
3342ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3343ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3344ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3346$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3347if ${am_cv_prog_cc_c_o+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349else
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351/* end confdefs.h. */
3352
3353int
3354main ()
3355{
3356
3357 ;
3358 return 0;
3359}
3360_ACEOF
3361 # Make sure it works both with $CC and with simple cc.
3362 # Following AC_PROG_CC_C_O, we do the test twice because some
3363 # compilers refuse to overwrite an existing .o file with -o,
3364 # though they will create one.
3365 am_cv_prog_cc_c_o=yes
3366 for am_i in 1 2; do
3367 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3368 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } \
3372 && test -f conftest2.$ac_objext; then
3373 : OK
3374 else
3375 am_cv_prog_cc_c_o=no
3376 break
3377 fi
3378 done
3379 rm -f core conftest*
3380 unset am_i
3381fi
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3383$as_echo "$am_cv_prog_cc_c_o" >&6; }
3384if test "$am_cv_prog_cc_c_o" != yes; then
3385 # Losing compiler, so override with the script.
3386 # FIXME: It is wrong to rewrite CC.
3387 # But if we don't then we get into trouble of one sort or another.
3388 # A longer-term fix would be to have automake use am__CC in this case,
3389 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3390 CC="$am_aux_dir/compile $CC"
3391fi
3392ac_ext=c
3393ac_cpp='$CPP $CPPFLAGS'
3394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397
3398
13b2be9c 3399
81ecdfbb
RW
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3401$as_echo_n "checking for library containing strerror... " >&6; }
d0ac1c44 3402if ${ac_cv_search_strerror+:} false; then :
81ecdfbb 3403 $as_echo_n "(cached) " >&6
13b2be9c 3404else
ab509236 3405 ac_func_search_save_LIBS=$LIBS
81ecdfbb 3406cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
3407/* end confdefs.h. */
3408
81ecdfbb
RW
3409/* Override any GCC internal prototype to avoid an error.
3410 Use char because int might match the return type of a GCC
3411 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
3412#ifdef __cplusplus
3413extern "C"
3414#endif
13b2be9c
DJ
3415char strerror ();
3416int
3417main ()
3418{
81ecdfbb 3419return strerror ();
13b2be9c
DJ
3420 ;
3421 return 0;
3422}
3423_ACEOF
81ecdfbb
RW
3424for ac_lib in '' cposix; do
3425 if test -z "$ac_lib"; then
3426 ac_res="none required"
3427 else
3428 ac_res=-l$ac_lib
ab509236 3429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
81ecdfbb
RW
3430 fi
3431 if ac_fn_c_try_link "$LINENO"; then :
3432 ac_cv_search_strerror=$ac_res
3433fi
3434rm -f core conftest.err conftest.$ac_objext \
3435 conftest$ac_exeext
d0ac1c44 3436 if ${ac_cv_search_strerror+:} false; then :
81ecdfbb
RW
3437 break
3438fi
3439done
d0ac1c44 3440if ${ac_cv_search_strerror+:} false; then :
ab509236 3441
ab509236 3442else
81ecdfbb 3443 ac_cv_search_strerror=no
13b2be9c 3444fi
81ecdfbb 3445rm conftest.$ac_ext
ab509236
L
3446LIBS=$ac_func_search_save_LIBS
3447fi
81ecdfbb
RW
3448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3449$as_echo "$ac_cv_search_strerror" >&6; }
3450ac_res=$ac_cv_search_strerror
3451if test "$ac_res" != no; then :
3452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13b2be9c 3453
ab509236 3454fi
13b2be9c
DJ
3455
3456
d0ac1c44 3457am__api_version='1.15'
81ecdfbb 3458
13b2be9c
DJ
3459# Find a good install program. We prefer a C program (faster),
3460# so one script is as good as another. But avoid the broken or
3461# incompatible versions:
3462# SysV /etc/install, /usr/sbin/install
3463# SunOS /usr/etc/install
3464# IRIX /sbin/install
3465# AIX /bin/install
3466# AmigaOS /C/install, which installs bootblocks on floppy discs
3467# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3468# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3469# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
ab509236 3470# OS/2's system install, which has a completely different semantic
13b2be9c 3471# ./install, which can be erroneously created by make from ./install.sh.
58c85be7 3472# Reject install programs that cannot install multiple files.
81ecdfbb
RW
3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3474$as_echo_n "checking for a BSD-compatible install... " >&6; }
13b2be9c 3475if test -z "$INSTALL"; then
d0ac1c44 3476if ${ac_cv_path_install+:} false; then :
81ecdfbb 3477 $as_echo_n "(cached) " >&6
13b2be9c
DJ
3478else
3479 as_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
RW
3484 # Account for people who put trailing slashes in PATH elements.
3485case $as_dir/ in #((
3486 ./ | .// | /[cC]/* | \
13b2be9c 3487 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
81ecdfbb 3488 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13b2be9c
DJ
3489 /usr/ucb/* ) ;;
3490 *)
3491 # OSF1 and SCO ODT 3.0 have their own names for install.
3492 # Don't use installbsd from OSF since it installs stuff as root
3493 # by default.
3494 for ac_prog in ginstall scoinst install; do
3495 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3496 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
ab509236
L
3497 if test $ac_prog = install &&
3498 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3499 # AIX install. It has an incompatible calling convention.
3500 :
3501 elif test $ac_prog = install &&
3502 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3503 # program-specific install script used by HP pwplus--don't use.
3504 :
3505 else
58c85be7
RW
3506 rm -rf conftest.one conftest.two conftest.dir
3507 echo one > conftest.one
3508 echo two > conftest.two
3509 mkdir conftest.dir
3510 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3511 test -s conftest.one && test -s conftest.two &&
3512 test -s conftest.dir/conftest.one &&
3513 test -s conftest.dir/conftest.two
3514 then
3515 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3516 break 3
3517 fi
ab509236
L
3518 fi
3519 fi
13b2be9c
DJ
3520 done
3521 done
3522 ;;
3523esac
81ecdfbb
RW
3524
3525 done
3526IFS=$as_save_IFS
13b2be9c 3527
58c85be7 3528rm -rf conftest.one conftest.two conftest.dir
252b5132
RH
3529
3530fi
3531 if test "${ac_cv_path_install+set}" = set; then
13b2be9c 3532 INSTALL=$ac_cv_path_install
252b5132 3533 else
58c85be7
RW
3534 # As a last resort, use the slow shell script. Don't cache a
3535 # value for INSTALL within a source directory, because that will
252b5132 3536 # break other packages using the cache if that directory is
58c85be7 3537 # removed, or if the value is a relative name.
13b2be9c 3538 INSTALL=$ac_install_sh
252b5132
RH
3539 fi
3540fi
81ecdfbb
RW
3541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3542$as_echo "$INSTALL" >&6; }
252b5132
RH
3543
3544# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3545# It thinks the first close brace ends the variable substitution.
3546test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3547
13b2be9c 3548test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
252b5132
RH
3549
3550test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3551
81ecdfbb
RW
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3553$as_echo_n "checking whether build environment is sane... " >&6; }
81ecdfbb
RW
3554# Reject unsafe characters in $srcdir or the absolute working directory
3555# name. Accept space and tab only in the latter.
3556am_lf='
3557'
3558case `pwd` in
3559 *[\\\"\#\$\&\'\`$am_lf]*)
d0ac1c44 3560 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
81ecdfbb
RW
3561esac
3562case $srcdir in
3563 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
d0ac1c44 3564 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
81ecdfbb
RW
3565esac
3566
d0ac1c44 3567# Do 'set' in a subshell so we don't clobber the current shell's
252b5132
RH
3568# arguments. Must try -L first in case configure is actually a
3569# symlink; some systems play weird games with the mod time of symlinks
3570# (eg FreeBSD returns the mod time of the symlink's containing
3571# directory).
3572if (
d0ac1c44
SM
3573 am_has_slept=no
3574 for am_try in 1 2; do
3575 echo "timestamp, slept: $am_has_slept" > conftest.file
3576 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3577 if test "$*" = "X"; then
3578 # -L didn't work.
3579 set X `ls -t "$srcdir/configure" conftest.file`
3580 fi
3581 if test "$*" != "X $srcdir/configure conftest.file" \
3582 && test "$*" != "X conftest.file $srcdir/configure"; then
3583
3584 # If neither matched, then we have a broken ls. This can happen
3585 # if, for instance, CONFIG_SHELL is bash and it inherits a
3586 # broken ls alias from the environment. This has actually
3587 # happened. Such a system could not be considered "sane".
3588 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3589 alias in your environment" "$LINENO" 5
3590 fi
3591 if test "$2" = conftest.file || test $am_try -eq 2; then
3592 break
3593 fi
3594 # Just in case.
3595 sleep 1
3596 am_has_slept=yes
3597 done
13b2be9c
DJ
3598 test "$2" = conftest.file
3599 )
3600then
3601 # Ok.
3602 :
3603else
d0ac1c44 3604 as_fn_error $? "newly created file is older than distributed files!
81ecdfbb 3605Check your system clock" "$LINENO" 5
13b2be9c 3606fi
81ecdfbb
RW
3607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3608$as_echo "yes" >&6; }
d0ac1c44
SM
3609# If we didn't sleep, we still need to ensure time stamps of config.status and
3610# generated files are strictly newer.
3611am_sleep_pid=
3612if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3613 ( sleep 1 ) &
3614 am_sleep_pid=$!
3615fi
3616
3617rm -f conftest.file
3618
13b2be9c 3619test "$program_prefix" != NONE &&
81ecdfbb 3620 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13b2be9c
DJ
3621# Use a double $ so make ignores it.
3622test "$program_suffix" != NONE &&
81ecdfbb
RW
3623 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3624# Double any \ or $.
13b2be9c 3625# By default was `s,x,x', remove it if useless.
81ecdfbb
RW
3626ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3627program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13b2be9c 3628
81ecdfbb
RW
3629if test x"${MISSING+set}" != xset; then
3630 case $am_aux_dir in
3631 *\ * | *\ *)
3632 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3633 *)
3634 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3635 esac
3636fi
13b2be9c 3637# Use eval to expand $SHELL
d0ac1c44
SM
3638if eval "$MISSING --is-lightweight"; then
3639 am_missing_run="$MISSING "
13b2be9c
DJ
3640else
3641 am_missing_run=
d0ac1c44
SM
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3643$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
ab509236
L
3644fi
3645
d0ac1c44 3646if test x"${install_sh+set}" != xset; then
81ecdfbb
RW
3647 case $am_aux_dir in
3648 *\ * | *\ *)
3649 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3650 *)
3651 install_sh="\${SHELL} $am_aux_dir/install-sh"
3652 esac
3653fi
3654
d0ac1c44
SM
3655# Installed binaries are usually stripped using 'strip' when the user
3656# run "make install-strip". However 'strip' might not be the right
81ecdfbb 3657# tool to use in cross-compilation environments, therefore Automake
d0ac1c44 3658# will honor the 'STRIP' environment variable to overrule this program.
81ecdfbb
RW
3659if test "$cross_compiling" != no; then
3660 if test -n "$ac_tool_prefix"; then
3661 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3662set dummy ${ac_tool_prefix}strip; ac_word=$2
3663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3665if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 3666 $as_echo_n "(cached) " >&6
13b2be9c 3667else
81ecdfbb
RW
3668 if test -n "$STRIP"; then
3669 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13b2be9c
DJ
3670else
3671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672for as_dir in $PATH
3673do
3674 IFS=$as_save_IFS
3675 test -z "$as_dir" && as_dir=.
81ecdfbb 3676 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3678 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13b2be9c
DJ
3680 break 2
3681 fi
3682done
81ecdfbb
RW
3683 done
3684IFS=$as_save_IFS
13b2be9c
DJ
3685
3686fi
3687fi
81ecdfbb
RW
3688STRIP=$ac_cv_prog_STRIP
3689if test -n "$STRIP"; then
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3691$as_echo "$STRIP" >&6; }
13b2be9c 3692else
81ecdfbb
RW
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694$as_echo "no" >&6; }
13b2be9c
DJ
3695fi
3696
13b2be9c 3697
81ecdfbb
RW
3698fi
3699if test -z "$ac_cv_prog_STRIP"; then
3700 ac_ct_STRIP=$STRIP
3701 # Extract the first word of "strip", so it can be a program name with args.
3702set dummy strip; ac_word=$2
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3704$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3705if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 3706 $as_echo_n "(cached) " >&6
13b2be9c 3707else
81ecdfbb
RW
3708 if test -n "$ac_ct_STRIP"; then
3709 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13b2be9c 3710else
81ecdfbb
RW
3711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712for as_dir in $PATH
3713do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3718 ac_cv_prog_ac_ct_STRIP="strip"
3719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 break 2
3721 fi
3722done
3723 done
3724IFS=$as_save_IFS
3725
3726fi
3727fi
3728ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3729if test -n "$ac_ct_STRIP"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3731$as_echo "$ac_ct_STRIP" >&6; }
3732else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734$as_echo "no" >&6; }
3735fi
3736
3737 if test "x$ac_ct_STRIP" = x; then
3738 STRIP=":"
3739 else
3740 case $cross_compiling:$ac_tool_warned in
3741yes:)
3742{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3743$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3744ac_tool_warned=yes ;;
3745esac
3746 STRIP=$ac_ct_STRIP
3747 fi
3748else
3749 STRIP="$ac_cv_prog_STRIP"
3750fi
3751
3752fi
3753INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3754
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3756$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3757if test -z "$MKDIR_P"; then
d0ac1c44 3758 if ${ac_cv_path_mkdir+:} false; then :
81ecdfbb
RW
3759 $as_echo_n "(cached) " >&6
3760else
3761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3763do
3764 IFS=$as_save_IFS
3765 test -z "$as_dir" && as_dir=.
3766 for ac_prog in mkdir gmkdir; do
3767 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3768 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
81ecdfbb
RW
3769 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3770 'mkdir (GNU coreutils) '* | \
3771 'mkdir (coreutils) '* | \
3772 'mkdir (fileutils) '4.1*)
3773 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3774 break 3;;
3775 esac
3776 done
3777 done
3778 done
3779IFS=$as_save_IFS
3780
3781fi
3782
d0ac1c44 3783 test -d ./--version && rmdir ./--version
81ecdfbb
RW
3784 if test "${ac_cv_path_mkdir+set}" = set; then
3785 MKDIR_P="$ac_cv_path_mkdir -p"
3786 else
3787 # As a last resort, use the slow shell script. Don't cache a
3788 # value for MKDIR_P within a source directory, because that will
3789 # break other packages using the cache if that directory is
3790 # removed, or if the value is a relative name.
81ecdfbb
RW
3791 MKDIR_P="$ac_install_sh -d"
3792 fi
3793fi
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3795$as_echo "$MKDIR_P" >&6; }
3796
81ecdfbb
RW
3797for ac_prog in gawk mawk nawk awk
3798do
3799 # Extract the first word of "$ac_prog", so it can be a program name with args.
3800set dummy $ac_prog; ac_word=$2
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 3803if ${ac_cv_prog_AWK+:} false; then :
81ecdfbb
RW
3804 $as_echo_n "(cached) " >&6
3805else
3806 if test -n "$AWK"; then
3807 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3808else
3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810for as_dir in $PATH
3811do
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
81ecdfbb
RW
3816 ac_cv_prog_AWK="$ac_prog"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820done
3821 done
3822IFS=$as_save_IFS
3823
3824fi
3825fi
3826AWK=$ac_cv_prog_AWK
3827if test -n "$AWK"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3829$as_echo "$AWK" >&6; }
3830else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832$as_echo "no" >&6; }
13b2be9c 3833fi
81ecdfbb
RW
3834
3835
3836 test -n "$AWK" && break
3837done
3838
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3840$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3841set x ${MAKE-make}
3842ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d0ac1c44 3843if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
81ecdfbb
RW
3844 $as_echo_n "(cached) " >&6
3845else
3846 cat >conftest.make <<\_ACEOF
3847SHELL = /bin/sh
3848all:
3849 @echo '@@@%%%=$(MAKE)=@@@%%%'
3850_ACEOF
d0ac1c44 3851# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
3852case `${MAKE-make} -f conftest.make 2>/dev/null` in
3853 *@@@%%%=?*=@@@%%%*)
3854 eval ac_cv_prog_make_${ac_make}_set=yes;;
3855 *)
3856 eval ac_cv_prog_make_${ac_make}_set=no;;
3857esac
13b2be9c
DJ
3858rm -f conftest.make
3859fi
81ecdfbb
RW
3860if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3862$as_echo "yes" >&6; }
13b2be9c
DJ
3863 SET_MAKE=
3864else
81ecdfbb
RW
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866$as_echo "no" >&6; }
13b2be9c
DJ
3867 SET_MAKE="MAKE=${MAKE-make}"
3868fi
3869
3870rm -rf .tst 2>/dev/null
3871mkdir .tst 2>/dev/null
3872if test -d .tst; then
3873 am__leading_dot=.
3874else
3875 am__leading_dot=_
3876fi
3877rmdir .tst 2>/dev/null
3878
3879DEPDIR="${am__leading_dot}deps"
3880
81ecdfbb 3881ac_config_commands="$ac_config_commands depfiles"
13b2be9c
DJ
3882
3883
3884am_make=${MAKE-make}
3885cat > confinc << 'END'
3886am__doit:
81ecdfbb 3887 @echo this is the am__doit target
13b2be9c
DJ
3888.PHONY: am__doit
3889END
3890# If we don't find an include directive, just comment out the code.
81ecdfbb
RW
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3892$as_echo_n "checking for style of include used by $am_make... " >&6; }
13b2be9c
DJ
3893am__include="#"
3894am__quote=
3895_am_result=none
3896# First try GNU make style include.
3897echo "include confinc" > confmf
d0ac1c44 3898# Ignore all kinds of additional output from 'make'.
81ecdfbb
RW
3899case `$am_make -s -f confmf 2> /dev/null` in #(
3900*the\ am__doit\ target*)
3901 am__include=include
3902 am__quote=
3903 _am_result=GNU
3904 ;;
3905esac
13b2be9c
DJ
3906# Now try BSD make style include.
3907if test "$am__include" = "#"; then
3908 echo '.include "confinc"' > confmf
81ecdfbb
RW
3909 case `$am_make -s -f confmf 2> /dev/null` in #(
3910 *the\ am__doit\ target*)
3911 am__include=.include
3912 am__quote="\""
3913 _am_result=BSD
3914 ;;
3915 esac
13b2be9c
DJ
3916fi
3917
3918
81ecdfbb
RW
3919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3920$as_echo "$_am_result" >&6; }
13b2be9c
DJ
3921rm -f confinc confmf
3922
81ecdfbb
RW
3923# Check whether --enable-dependency-tracking was given.
3924if test "${enable_dependency_tracking+set}" = set; then :
3925 enableval=$enable_dependency_tracking;
3926fi
13b2be9c 3927
13b2be9c
DJ
3928if test "x$enable_dependency_tracking" != xno; then
3929 am_depcomp="$ac_aux_dir/depcomp"
3930 AMDEPBACKSLASH='\'
6eb7d830 3931 am__nodep='_no'
13b2be9c 3932fi
81ecdfbb 3933 if test "x$enable_dependency_tracking" != xno; then
13b2be9c
DJ
3934 AMDEP_TRUE=
3935 AMDEP_FALSE='#'
3936else
3937 AMDEP_TRUE='#'
3938 AMDEP_FALSE=
3939fi
3940
3941
d0ac1c44
SM
3942# Check whether --enable-silent-rules was given.
3943if test "${enable_silent_rules+set}" = set; then :
3944 enableval=$enable_silent_rules;
3945fi
3946
3947case $enable_silent_rules in # (((
3948 yes) AM_DEFAULT_VERBOSITY=0;;
3949 no) AM_DEFAULT_VERBOSITY=1;;
3950 *) AM_DEFAULT_VERBOSITY=1;;
3951esac
3952am_make=${MAKE-make}
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3954$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3955if ${am_cv_make_support_nested_variables+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957else
3958 if $as_echo 'TRUE=$(BAR$(V))
3959BAR0=false
3960BAR1=true
3961V=1
3962am__doit:
3963 @$(TRUE)
3964.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3965 am_cv_make_support_nested_variables=yes
3966else
3967 am_cv_make_support_nested_variables=no
3968fi
3969fi
3970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3971$as_echo "$am_cv_make_support_nested_variables" >&6; }
3972if test $am_cv_make_support_nested_variables = yes; then
3973 AM_V='$(V)'
3974 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3975else
3976 AM_V=$AM_DEFAULT_VERBOSITY
3977 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3978fi
3979AM_BACKSLASH='\'
3980
81ecdfbb
RW
3981if test "`cd $srcdir && pwd`" != "`pwd`"; then
3982 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3983 # is not polluted with repeated "-I."
3984 am__isrc=' -I$(srcdir)'
3985 # test to see if srcdir already configured
3986 if test -f $srcdir/config.status; then
d0ac1c44 3987 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
81ecdfbb 3988 fi
13b2be9c
DJ
3989fi
3990
3991# test whether we have cygpath
3992if test -z "$CYGPATH_W"; then
3993 if (cygpath --version) >/dev/null 2>/dev/null; then
3994 CYGPATH_W='cygpath -w'
3995 else
3996 CYGPATH_W=echo
3997 fi
3998fi
3999
4000
4001# Define the identity of the package.
2e98a7bd 4002 PACKAGE='gas'
f48dfe41 4003 VERSION='2.32.51'
13b2be9c
DJ
4004
4005
4006cat >>confdefs.h <<_ACEOF
4007#define PACKAGE "$PACKAGE"
4008_ACEOF
4009
4010
4011cat >>confdefs.h <<_ACEOF
4012#define VERSION "$VERSION"
4013_ACEOF
4014
4015# Some tools Automake needs.
4016
4017ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4018
4019
4020AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4021
4022
4023AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4024
4025
4026AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4027
4028
4029MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4030
d0ac1c44
SM
4031# For better backward compatibility. To be removed once Automake 1.9.x
4032# dies out for good. For more background, see:
4033# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4034# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4035mkdir_p='$(MKDIR_P)'
4036
4037# We need awk for the "check" target (and possibly the TAP driver). The
4038# system "awk" is bad on some platforms.
6eb7d830
AM
4039# Always define AMTAR for backward compatibility. Yes, it's still used
4040# in the wild :-( We should find a proper way to deprecate it ...
4041AMTAR='$${TAR-tar}'
8ea2b00f 4042
d0ac1c44
SM
4043
4044# We'll loop over all known methods to create a tar archive until one works.
4045_am_tools='gnutar pax cpio none'
4046
6eb7d830 4047am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
8ea2b00f
AM
4048
4049
252b5132 4050
d6d788bd 4051
d0ac1c44 4052
13b2be9c 4053depcc="$CC" am_compiler_list=
d6d788bd 4054
81ecdfbb
RW
4055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4056$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 4057if ${am_cv_CC_dependencies_compiler_type+:} false; then :
81ecdfbb 4058 $as_echo_n "(cached) " >&6
252b5132 4059else
13b2be9c
DJ
4060 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4061 # We make a subdir and do the tests there. Otherwise we can end up
4062 # making bogus files that we don't know about and never remove. For
4063 # instance it was reported that on HP-UX the gcc test will end up
d0ac1c44
SM
4064 # making a dummy file named 'D' -- because '-MD' means "put the output
4065 # in D".
6eb7d830 4066 rm -rf conftest.dir
13b2be9c
DJ
4067 mkdir conftest.dir
4068 # Copy depcomp to subdir because otherwise we won't find it if we're
4069 # using a relative directory.
4070 cp "$am_depcomp" conftest.dir
4071 cd conftest.dir
4072 # We will build objects and dependencies in a subdirectory because
4073 # it helps to detect inapplicable dependency modes. For instance
4074 # both Tru64's cc and ICC support -MD to output dependencies as a
4075 # side effect of compilation, but ICC will put the dependencies in
4076 # the current directory while Tru64 will put them in the object
4077 # directory.
4078 mkdir sub
252b5132 4079
13b2be9c
DJ
4080 am_cv_CC_dependencies_compiler_type=none
4081 if test "$am_compiler_list" = ""; then
4082 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4083 fi
81ecdfbb
RW
4084 am__universal=false
4085 case " $depcc " in #(
4086 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4087 esac
4088
13b2be9c
DJ
4089 for depmode in $am_compiler_list; do
4090 # Setup a source with many dependencies, because some compilers
4091 # like to wrap large dependency lists on column 80 (with \), and
4092 # we should not choose a depcomp mode which is confused by this.
4093 #
4094 # We need to recreate these files for each test, as the compiler may
4095 # overwrite some of them when testing with obscure command lines.
4096 # This happens at least with the AIX C compiler.
4097 : > sub/conftest.c
4098 for i in 1 2 3 4 5 6; do
4099 echo '#include "conftst'$i'.h"' >> sub/conftest.c
d0ac1c44
SM
4100 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4101 # Solaris 10 /bin/sh.
4102 echo '/* dummy */' > sub/conftst$i.h
13b2be9c
DJ
4103 done
4104 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4105
d0ac1c44 4106 # We check with '-c' and '-o' for the sake of the "dashmstdout"
81ecdfbb 4107 # mode. It turns out that the SunPro C++ compiler does not properly
d0ac1c44
SM
4108 # handle '-M -o', and we need to detect this. Also, some Intel
4109 # versions had trouble with output in subdirs.
81ecdfbb
RW
4110 am__obj=sub/conftest.${OBJEXT-o}
4111 am__minus_obj="-o $am__obj"
13b2be9c 4112 case $depmode in
81ecdfbb
RW
4113 gcc)
4114 # This depmode causes a compiler race in universal mode.
4115 test "$am__universal" = false || continue
4116 ;;
13b2be9c 4117 nosideeffect)
d0ac1c44
SM
4118 # After this tag, mechanisms are not by side-effect, so they'll
4119 # only be used when explicitly requested.
13b2be9c
DJ
4120 if test "x$enable_dependency_tracking" = xyes; then
4121 continue
4122 else
4123 break
4124 fi
4125 ;;
6eb7d830 4126 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
d0ac1c44 4127 # This compiler won't grok '-c -o', but also, the minuso test has
81ecdfbb
RW
4128 # not run yet. These depmodes are late enough in the game, and
4129 # so weak that their functioning should not be impacted.
4130 am__obj=conftest.${OBJEXT-o}
4131 am__minus_obj=
4132 ;;
13b2be9c
DJ
4133 none) break ;;
4134 esac
13b2be9c 4135 if depmode=$depmode \
81ecdfbb 4136 source=sub/conftest.c object=$am__obj \
13b2be9c 4137 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
81ecdfbb 4138 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13b2be9c 4139 >/dev/null 2>conftest.err &&
81ecdfbb 4140 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c 4141 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
81ecdfbb 4142 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13b2be9c
DJ
4143 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4144 # icc doesn't choke on unknown options, it will just issue warnings
4b363073
NC
4145 # or remarks (even with -Werror). So we grep stderr for any message
4146 # that says an option was ignored or not supported.
4147 # When given -MP, icc 7.0 and 7.1 complain thusly:
4148 # icc: Command line warning: ignoring option '-M'; no argument required
4149 # The diagnosis changed in icc 8.0:
4150 # icc: Command line remark: option '-MP' not supported
4151 if (grep 'ignoring option' conftest.err ||
4152 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13b2be9c
DJ
4153 am_cv_CC_dependencies_compiler_type=$depmode
4154 break
4155 fi
4156 fi
4157 done
252b5132 4158
13b2be9c
DJ
4159 cd ..
4160 rm -rf conftest.dir
252b5132 4161else
13b2be9c 4162 am_cv_CC_dependencies_compiler_type=none
252b5132
RH
4163fi
4164
252b5132 4165fi
81ecdfbb
RW
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4167$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13b2be9c 4168CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
252b5132 4169
81ecdfbb 4170 if
13b2be9c
DJ
4171 test "x$enable_dependency_tracking" != xno \
4172 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4173 am__fastdepCC_TRUE=
4174 am__fastdepCC_FALSE='#'
252b5132 4175else
13b2be9c
DJ
4176 am__fastdepCC_TRUE='#'
4177 am__fastdepCC_FALSE=
252b5132
RH
4178fi
4179
d6d788bd
L
4180
4181
d0ac1c44
SM
4182# POSIX will say in a future version that running "rm -f" with no argument
4183# is OK; and we want to be able to make that assumption in our Makefile
4184# recipes. So use an aggressive probe to check that the usage we want is
4185# actually supported "in the wild" to an acceptable degree.
4186# See automake bug#10828.
4187# To make any issue more visible, cause the running configure to be aborted
4188# by default if the 'rm' program in use doesn't match our expectations; the
4189# user can still override this though.
4190if rm -f && rm -fr && rm -rf; then : OK; else
4191 cat >&2 <<'END'
4192Oops!
4193
4194Your 'rm' program seems unable to run without file operands specified
4195on the command line, even when the '-f' option is present. This is contrary
4196to the behaviour of most rm programs out there, and not conforming with
4197the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4198
4199Please tell bug-automake@gnu.org about your system, including the value
4200of your $PATH and any error possibly output before this message. This
4201can help us improve future automake versions.
4202
4203END
4204 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4205 echo 'Configuration will proceed anyway, since you have set the' >&2
4206 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4207 echo >&2
4208 else
4209 cat >&2 <<'END'
4210Aborting the configuration process, to ensure you take notice of the issue.
4211
4212You can download and install GNU coreutils to get an 'rm' implementation
4213that behaves properly: <http://www.gnu.org/software/coreutils/>.
4214
4215If you want to complete the configuration process using your problematic
4216'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4217to "yes", and re-run configure.
4218
4219END
4220 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4221 fi
4222fi
4223
13b2be9c 4224
ce2cded5
L
4225ac_ext=c
4226ac_cpp='$CPP $CPPFLAGS'
4227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4229ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230if test -n "$ac_tool_prefix"; then
4231 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4232set dummy ${ac_tool_prefix}gcc; ac_word=$2
81ecdfbb
RW
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4234$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4235if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4236 $as_echo_n "(cached) " >&6
252b5132 4237else
ce2cded5
L
4238 if test -n "$CC"; then
4239 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 4240else
ce2cded5
L
4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH
4243do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
81ecdfbb 4246 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 4248 ac_cv_prog_CC="${ac_tool_prefix}gcc"
81ecdfbb 4249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4250 break 2
4251 fi
4252done
81ecdfbb
RW
4253 done
4254IFS=$as_save_IFS
d7040cdb 4255
ce2cded5
L
4256fi
4257fi
4258CC=$ac_cv_prog_CC
4259if test -n "$CC"; then
81ecdfbb
RW
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4261$as_echo "$CC" >&6; }
bedf545c 4262else
81ecdfbb
RW
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4264$as_echo "no" >&6; }
ce2cded5 4265fi
d7040cdb 4266
81ecdfbb 4267
ce2cded5
L
4268fi
4269if test -z "$ac_cv_prog_CC"; then
4270 ac_ct_CC=$CC
4271 # Extract the first word of "gcc", so it can be a program name with args.
4272set dummy gcc; ac_word=$2
81ecdfbb
RW
4273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4275if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4276 $as_echo_n "(cached) " >&6
d7040cdb 4277else
ce2cded5
L
4278 if test -n "$ac_ct_CC"; then
4279 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4280else
d7040cdb
SE
4281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282for as_dir in $PATH
4283do
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
81ecdfbb 4286 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 4288 ac_cv_prog_ac_ct_CC="gcc"
81ecdfbb 4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 4290 break 2
d7040cdb 4291 fi
ce2cded5 4292done
81ecdfbb
RW
4293 done
4294IFS=$as_save_IFS
d7040cdb 4295
ce2cded5
L
4296fi
4297fi
4298ac_ct_CC=$ac_cv_prog_ac_ct_CC
4299if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4301$as_echo "$ac_ct_CC" >&6; }
ce2cded5 4302else
81ecdfbb
RW
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304$as_echo "no" >&6; }
d7040cdb
SE
4305fi
4306
81ecdfbb
RW
4307 if test "x$ac_ct_CC" = x; then
4308 CC=""
4309 else
4310 case $cross_compiling:$ac_tool_warned in
4311yes:)
4312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4314ac_tool_warned=yes ;;
4315esac
4316 CC=$ac_ct_CC
4317 fi
ce2cded5
L
4318else
4319 CC="$ac_cv_prog_CC"
4320fi
d7040cdb 4321
ce2cded5 4322if test -z "$CC"; then
81ecdfbb
RW
4323 if test -n "$ac_tool_prefix"; then
4324 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
ce2cded5 4325set dummy ${ac_tool_prefix}cc; ac_word=$2
81ecdfbb
RW
4326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4327$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4328if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4329 $as_echo_n "(cached) " >&6
d7040cdb 4330else
ce2cded5
L
4331 if test -n "$CC"; then
4332 ac_cv_prog_CC="$CC" # Let the user override the test.
d7040cdb 4333else
ce2cded5
L
4334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335for as_dir in $PATH
4336do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
81ecdfbb 4339 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 4341 ac_cv_prog_CC="${ac_tool_prefix}cc"
81ecdfbb 4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4343 break 2
4344 fi
4345done
81ecdfbb
RW
4346 done
4347IFS=$as_save_IFS
d7040cdb 4348
252b5132
RH
4349fi
4350fi
ce2cded5
L
4351CC=$ac_cv_prog_CC
4352if test -n "$CC"; then
81ecdfbb
RW
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4354$as_echo "$CC" >&6; }
ce2cded5 4355else
81ecdfbb
RW
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357$as_echo "no" >&6; }
d7040cdb 4358fi
f9c19112 4359
ce2cded5 4360
81ecdfbb 4361 fi
ce2cded5
L
4362fi
4363if test -z "$CC"; then
4364 # Extract the first word of "cc", so it can be a program name with args.
4365set dummy cc; ac_word=$2
81ecdfbb
RW
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4368if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4369 $as_echo_n "(cached) " >&6
ce2cded5
L
4370else
4371 if test -n "$CC"; then
4372 ac_cv_prog_CC="$CC" # Let the user override the test.
4373else
4374 ac_prog_rejected=no
4375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376for as_dir in $PATH
4377do
4378 IFS=$as_save_IFS
4379 test -z "$as_dir" && as_dir=.
81ecdfbb 4380 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5
L
4382 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4383 ac_prog_rejected=yes
4384 continue
4385 fi
4386 ac_cv_prog_CC="cc"
81ecdfbb 4387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4388 break 2
4389 fi
4390done
81ecdfbb
RW
4391 done
4392IFS=$as_save_IFS
ce2cded5
L
4393
4394if test $ac_prog_rejected = yes; then
4395 # We found a bogon in the path, so make sure we never use it.
4396 set dummy $ac_cv_prog_CC
4397 shift
4398 if test $# != 0; then
4399 # We chose a different compiler from the bogus one.
4400 # However, it has the same basename, so the bogon will be chosen
4401 # first if we set CC to just the basename; use the full file name.
4402 shift
4403 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4404 fi
4405fi
4406fi
4407fi
4408CC=$ac_cv_prog_CC
4409if test -n "$CC"; then
81ecdfbb
RW
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4411$as_echo "$CC" >&6; }
ce2cded5 4412else
81ecdfbb
RW
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4414$as_echo "no" >&6; }
ce2cded5
L
4415fi
4416
81ecdfbb 4417
ce2cded5
L
4418fi
4419if test -z "$CC"; then
4420 if test -n "$ac_tool_prefix"; then
81ecdfbb 4421 for ac_prog in cl.exe
ce2cded5
L
4422 do
4423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4424set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4426$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4427if ${ac_cv_prog_CC+:} false; then :
81ecdfbb 4428 $as_echo_n "(cached) " >&6
ce2cded5
L
4429else
4430 if test -n "$CC"; then
4431 ac_cv_prog_CC="$CC" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
81ecdfbb 4438 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 4440 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
81ecdfbb 4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
4442 break 2
4443 fi
4444done
81ecdfbb
RW
4445 done
4446IFS=$as_save_IFS
ce2cded5
L
4447
4448fi
4449fi
4450CC=$ac_cv_prog_CC
4451if test -n "$CC"; then
81ecdfbb
RW
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4453$as_echo "$CC" >&6; }
ce2cded5 4454else
81ecdfbb
RW
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4456$as_echo "no" >&6; }
ce2cded5
L
4457fi
4458
81ecdfbb 4459
ce2cded5 4460 test -n "$CC" && break
d7040cdb
SE
4461 done
4462fi
ce2cded5
L
4463if test -z "$CC"; then
4464 ac_ct_CC=$CC
81ecdfbb 4465 for ac_prog in cl.exe
d7040cdb
SE
4466do
4467 # Extract the first word of "$ac_prog", so it can be a program name with args.
4468set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
4469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4471if ${ac_cv_prog_ac_ct_CC+:} false; then :
81ecdfbb 4472 $as_echo_n "(cached) " >&6
d7040cdb 4473else
ce2cded5
L
4474 if test -n "$ac_ct_CC"; then
4475 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d7040cdb
SE
4476else
4477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
81ecdfbb 4482 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 4484 ac_cv_prog_ac_ct_CC="$ac_prog"
81ecdfbb 4485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 4486 break 2
ac48eca1 4487 fi
d7040cdb 4488done
81ecdfbb
RW
4489 done
4490IFS=$as_save_IFS
ac48eca1 4491
d7040cdb
SE
4492fi
4493fi
ce2cded5
L
4494ac_ct_CC=$ac_cv_prog_ac_ct_CC
4495if test -n "$ac_ct_CC"; then
81ecdfbb
RW
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4497$as_echo "$ac_ct_CC" >&6; }
d7040cdb 4498else
81ecdfbb
RW
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500$as_echo "no" >&6; }
d7040cdb 4501fi
ac48eca1 4502
81ecdfbb 4503
ce2cded5 4504 test -n "$ac_ct_CC" && break
d7040cdb 4505done
ac48eca1 4506
81ecdfbb
RW
4507 if test "x$ac_ct_CC" = x; then
4508 CC=""
4509 else
4510 case $cross_compiling:$ac_tool_warned in
4511yes:)
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4514ac_tool_warned=yes ;;
4515esac
4516 CC=$ac_ct_CC
4517 fi
d7040cdb 4518fi
ac48eca1 4519
d7040cdb 4520fi
ac48eca1 4521
ac48eca1 4522
81ecdfbb
RW
4523test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4525as_fn_error $? "no acceptable C compiler found in \$PATH
4526See \`config.log' for more details" "$LINENO" 5; }
6be7c12c 4527
ce2cded5 4528# Provide some information about the compiler.
81ecdfbb
RW
4529$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4530set X $ac_compile
4531ac_compiler=$2
4532for ac_option in --version -v -V -qversion; do
4533 { { ac_try="$ac_compiler $ac_option >&5"
4534case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4537esac
4538eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4539$as_echo "$ac_try_echo"; } >&5
4540 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
ce2cded5 4541 ac_status=$?
81ecdfbb
RW
4542 if test -s conftest.err; then
4543 sed '10a\
4544... rest of stderr output deleted ...
4545 10q' conftest.err >conftest.er1
4546 cat conftest.er1 >&5
81ecdfbb 4547 fi
d0ac1c44 4548 rm -f conftest.er1 conftest.err
81ecdfbb
RW
4549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4550 test $ac_status = 0; }
4551done
ac48eca1 4552
81ecdfbb
RW
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4554$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 4555if ${ac_cv_c_compiler_gnu+:} false; then :
81ecdfbb 4556 $as_echo_n "(cached) " >&6
d7040cdb 4557else
81ecdfbb 4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4559/* end confdefs.h. */
c8615825 4560
ce2cded5
L
4561int
4562main ()
4563{
4564#ifndef __GNUC__
4565 choke me
4566#endif
4567
4568 ;
4569 return 0;
4570}
4571_ACEOF
81ecdfbb 4572if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 4573 ac_compiler_gnu=yes
d7040cdb 4574else
81ecdfbb 4575 ac_compiler_gnu=no
d7040cdb 4576fi
81ecdfbb 4577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 4578ac_cv_c_compiler_gnu=$ac_compiler_gnu
ac48eca1 4579
ce2cded5 4580fi
81ecdfbb
RW
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4582$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4583if test $ac_compiler_gnu = yes; then
4584 GCC=yes
4585else
4586 GCC=
4587fi
ce2cded5
L
4588ac_test_CFLAGS=${CFLAGS+set}
4589ac_save_CFLAGS=$CFLAGS
81ecdfbb
RW
4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4591$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 4592if ${ac_cv_prog_cc_g+:} false; then :
81ecdfbb
RW
4593 $as_echo_n "(cached) " >&6
4594else
4595 ac_save_c_werror_flag=$ac_c_werror_flag
4596 ac_c_werror_flag=yes
4597 ac_cv_prog_cc_g=no
4598 CFLAGS="-g"
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 4600/* end confdefs.h. */
d7040cdb 4601
ce2cded5
L
4602int
4603main ()
4604{
d7040cdb 4605
ce2cded5
L
4606 ;
4607 return 0;
4608}
4609_ACEOF
81ecdfbb 4610if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
4611 ac_cv_prog_cc_g=yes
4612else
81ecdfbb
RW
4613 CFLAGS=""
4614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h. */
4616
4617int
4618main ()
4619{
4620
4621 ;
4622 return 0;
4623}
4624_ACEOF
4625if ac_fn_c_try_compile "$LINENO"; then :
4626
4627else
4628 ac_c_werror_flag=$ac_save_c_werror_flag
4629 CFLAGS="-g"
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631/* end confdefs.h. */
d70c5fc7 4632
81ecdfbb
RW
4633int
4634main ()
4635{
4636
4637 ;
4638 return 0;
4639}
4640_ACEOF
4641if ac_fn_c_try_compile "$LINENO"; then :
4642 ac_cv_prog_cc_g=yes
4643fi
4644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4645fi
81ecdfbb 4646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d70c5fc7 4647fi
81ecdfbb
RW
4648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4649 ac_c_werror_flag=$ac_save_c_werror_flag
4650fi
4651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4652$as_echo "$ac_cv_prog_cc_g" >&6; }
ce2cded5
L
4653if test "$ac_test_CFLAGS" = set; then
4654 CFLAGS=$ac_save_CFLAGS
4655elif test $ac_cv_prog_cc_g = yes; then
4656 if test "$GCC" = yes; then
4657 CFLAGS="-g -O2"
4658 else
4659 CFLAGS="-g"
4660 fi
ac48eca1 4661else
ce2cded5
L
4662 if test "$GCC" = yes; then
4663 CFLAGS="-O2"
4664 else
4665 CFLAGS=
4666 fi
ac48eca1 4667fi
81ecdfbb
RW
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4669$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 4670if ${ac_cv_prog_cc_c89+:} false; then :
81ecdfbb 4671 $as_echo_n "(cached) " >&6
ac48eca1 4672else
81ecdfbb 4673 ac_cv_prog_cc_c89=no
ce2cded5 4674ac_save_CC=$CC
81ecdfbb 4675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
4676/* end confdefs.h. */
4677#include <stdarg.h>
4678#include <stdio.h>
d0ac1c44 4679struct stat;
ce2cded5
L
4680/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4681struct buf { int x; };
4682FILE * (*rcsopen) (struct buf *, struct stat *, int);
4683static char *e (p, i)
4684 char **p;
4685 int i;
4686{
4687 return p[i];
4688}
4689static char *f (char * (*g) (char **, int), char **p, ...)
4690{
4691 char *s;
4692 va_list v;
4693 va_start (v,p);
4694 s = g (p, va_arg (v,int));
4695 va_end (v);
4696 return s;
4697}
4698
4699/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4700 function prototypes and stuff, but not '\xHH' hex character constants.
4701 These don't provoke an error unfortunately, instead are silently treated
81ecdfbb 4702 as 'x'. The following induces an error, until -std is added to get
ce2cded5
L
4703 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4704 array size at least. It's necessary to write '\x00'==0 to get something
81ecdfbb 4705 that's true only with -std. */
ce2cded5
L
4706int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4707
81ecdfbb
RW
4708/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4709 inside strings and character constants. */
4710#define FOO(x) 'x'
4711int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4712
ce2cded5
L
4713int test (int i, double x);
4714struct s1 {int (*f) (int a);};
4715struct s2 {int (*f) (double a);};
4716int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4717int argc;
4718char **argv;
4719int
4720main ()
4721{
4722return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4723 ;
4724 return 0;
4725}
4726_ACEOF
81ecdfbb
RW
4727for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4728 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
ce2cded5
L
4729do
4730 CC="$ac_save_CC $ac_arg"
81ecdfbb
RW
4731 if ac_fn_c_try_compile "$LINENO"; then :
4732 ac_cv_prog_cc_c89=$ac_arg
ce2cded5 4733fi
81ecdfbb
RW
4734rm -f core conftest.err conftest.$ac_objext
4735 test "x$ac_cv_prog_cc_c89" != "xno" && break
ce2cded5 4736done
81ecdfbb 4737rm -f conftest.$ac_ext
ce2cded5
L
4738CC=$ac_save_CC
4739
4740fi
81ecdfbb
RW
4741# AC_CACHE_VAL
4742case "x$ac_cv_prog_cc_c89" in
4743 x)
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4745$as_echo "none needed" >&6; } ;;
4746 xno)
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4748$as_echo "unsupported" >&6; } ;;
ce2cded5 4749 *)
81ecdfbb
RW
4750 CC="$CC $ac_cv_prog_cc_c89"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4752$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
d7040cdb 4753esac
81ecdfbb 4754if test "x$ac_cv_prog_cc_c89" != xno; then :
d7040cdb 4755
ce2cded5 4756fi
d7040cdb 4757
ce2cded5
L
4758ac_ext=c
4759ac_cpp='$CPP $CPPFLAGS'
4760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 4763
d0ac1c44
SM
4764ac_ext=c
4765ac_cpp='$CPP $CPPFLAGS'
4766ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4767ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4768ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4770$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4771if ${am_cv_prog_cc_c_o+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773else
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h. */
4776
4777int
4778main ()
4779{
4780
4781 ;
4782 return 0;
4783}
4784_ACEOF
4785 # Make sure it works both with $CC and with simple cc.
4786 # Following AC_PROG_CC_C_O, we do the test twice because some
4787 # compilers refuse to overwrite an existing .o file with -o,
4788 # though they will create one.
4789 am_cv_prog_cc_c_o=yes
4790 for am_i in 1 2; do
4791 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4792 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4793 ac_status=$?
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); } \
4796 && test -f conftest2.$ac_objext; then
4797 : OK
4798 else
4799 am_cv_prog_cc_c_o=no
4800 break
4801 fi
4802 done
4803 rm -f core conftest*
4804 unset am_i
4805fi
4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4807$as_echo "$am_cv_prog_cc_c_o" >&6; }
4808if test "$am_cv_prog_cc_c_o" != yes; then
4809 # Losing compiler, so override with the script.
4810 # FIXME: It is wrong to rewrite CC.
4811 # But if we don't then we get into trouble of one sort or another.
4812 # A longer-term fix would be to have automake use am__CC in this case,
4813 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4814 CC="$am_aux_dir/compile $CC"
4815fi
4816ac_ext=c
4817ac_cpp='$CPP $CPPFLAGS'
4818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4820ac_compiler_gnu=$ac_cv_c_compiler_gnu
4821
4822
7357c5b6
AM
4823ac_ext=c
4824ac_cpp='$CPP $CPPFLAGS'
4825ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4826ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4827ac_compiler_gnu=$ac_cv_c_compiler_gnu
81ecdfbb
RW
4828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4829$as_echo_n "checking how to run the C preprocessor... " >&6; }
7357c5b6
AM
4830# On Suns, sometimes $CPP names a directory.
4831if test -n "$CPP" && test -d "$CPP"; then
4832 CPP=
4833fi
4834if test -z "$CPP"; then
d0ac1c44 4835 if ${ac_cv_prog_CPP+:} false; then :
81ecdfbb 4836 $as_echo_n "(cached) " >&6
7357c5b6
AM
4837else
4838 # Double quotes because CPP needs to be expanded
4839 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4840 do
4841 ac_preproc_ok=false
4842for ac_c_preproc_warn_flag in '' yes
4843do
4844 # Use a header file that comes with gcc, so configuring glibc
4845 # with a fresh cross-compiler works.
4846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4847 # <limits.h> exists even on freestanding compilers.
4848 # On the NeXT, cc -E runs the code through the compiler's parser,
4849 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4851/* end confdefs.h. */
4852#ifdef __STDC__
4853# include <limits.h>
4854#else
4855# include <assert.h>
4856#endif
4857 Syntax error
4858_ACEOF
81ecdfbb 4859if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4860
81ecdfbb 4861else
7357c5b6
AM
4862 # Broken: fails on valid input.
4863continue
4864fi
d0ac1c44 4865rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4866
81ecdfbb 4867 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4868 # can be detected and how.
81ecdfbb 4869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4870/* end confdefs.h. */
4871#include <ac_nonexistent.h>
4872_ACEOF
81ecdfbb 4873if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4874 # Broken: success on invalid input.
4875continue
4876else
7357c5b6
AM
4877 # Passes both tests.
4878ac_preproc_ok=:
4879break
4880fi
d0ac1c44 4881rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4882
7357c5b6
AM
4883done
4884# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4885rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb 4886if $ac_preproc_ok; then :
7357c5b6
AM
4887 break
4888fi
d7040cdb 4889
7357c5b6
AM
4890 done
4891 ac_cv_prog_CPP=$CPP
d7040cdb 4892
7357c5b6
AM
4893fi
4894 CPP=$ac_cv_prog_CPP
4895else
4896 ac_cv_prog_CPP=$CPP
4897fi
81ecdfbb
RW
4898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4899$as_echo "$CPP" >&6; }
7357c5b6
AM
4900ac_preproc_ok=false
4901for ac_c_preproc_warn_flag in '' yes
4902do
4903 # Use a header file that comes with gcc, so configuring glibc
4904 # with a fresh cross-compiler works.
4905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4906 # <limits.h> exists even on freestanding compilers.
4907 # On the NeXT, cc -E runs the code through the compiler's parser,
4908 # not just through cpp. "Syntax error" is here to catch this case.
81ecdfbb 4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4910/* end confdefs.h. */
4911#ifdef __STDC__
4912# include <limits.h>
4913#else
4914# include <assert.h>
4915#endif
4916 Syntax error
4917_ACEOF
81ecdfbb 4918if ac_fn_c_try_cpp "$LINENO"; then :
d7040cdb 4919
81ecdfbb 4920else
7357c5b6
AM
4921 # Broken: fails on valid input.
4922continue
4923fi
d0ac1c44 4924rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4925
81ecdfbb 4926 # OK, works on sane cases. Now check whether nonexistent headers
7357c5b6 4927 # can be detected and how.
81ecdfbb 4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
4929/* end confdefs.h. */
4930#include <ac_nonexistent.h>
4931_ACEOF
81ecdfbb 4932if ac_fn_c_try_cpp "$LINENO"; then :
7357c5b6
AM
4933 # Broken: success on invalid input.
4934continue
4935else
7357c5b6
AM
4936 # Passes both tests.
4937ac_preproc_ok=:
4938break
4939fi
d0ac1c44 4940rm -f conftest.err conftest.i conftest.$ac_ext
d7040cdb 4941
7357c5b6
AM
4942done
4943# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d0ac1c44 4944rm -f conftest.i conftest.err conftest.$ac_ext
81ecdfbb
RW
4945if $ac_preproc_ok; then :
4946
7357c5b6 4947else
81ecdfbb
RW
4948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
4950as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4951See \`config.log' for more details" "$LINENO" 5; }
7357c5b6 4952fi
ac48eca1 4953
7357c5b6
AM
4954ac_ext=c
4955ac_cpp='$CPP $CPPFLAGS'
4956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4958ac_compiler_gnu=$ac_cv_c_compiler_gnu
ac48eca1 4959
ac48eca1 4960
81ecdfbb
RW
4961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4962$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 4963if ${ac_cv_path_GREP+:} false; then :
81ecdfbb 4964 $as_echo_n "(cached) " >&6
7357c5b6 4965else
81ecdfbb
RW
4966 if test -z "$GREP"; then
4967 ac_path_GREP_found=false
4968 # Loop through the user's path and test for each of PROGNAME-LIST
4969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4971do
4972 IFS=$as_save_IFS
4973 test -z "$as_dir" && as_dir=.
4974 for ac_prog in grep ggrep; do
4975 for ac_exec_ext in '' $ac_executable_extensions; do
4976 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 4977 as_fn_executable_p "$ac_path_GREP" || continue
81ecdfbb
RW
4978# Check for GNU ac_path_GREP and select it if it is found.
4979 # Check for GNU $ac_path_GREP
4980case `"$ac_path_GREP" --version 2>&1` in
4981*GNU*)
4982 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4983*)
4984 ac_count=0
4985 $as_echo_n 0123456789 >"conftest.in"
4986 while :
4987 do
4988 cat "conftest.in" "conftest.in" >"conftest.tmp"
4989 mv "conftest.tmp" "conftest.in"
4990 cp "conftest.in" "conftest.nl"
4991 $as_echo 'GREP' >> "conftest.nl"
4992 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4993 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4994 as_fn_arith $ac_count + 1 && ac_count=$as_val
4995 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4996 # Best one so far, save it but keep looking for a better one
4997 ac_cv_path_GREP="$ac_path_GREP"
4998 ac_path_GREP_max=$ac_count
7357c5b6 4999 fi
81ecdfbb
RW
5000 # 10*(2^10) chars as input seems more than enough
5001 test $ac_count -gt 10 && break
5002 done
5003 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5004esac
5005
5006 $ac_path_GREP_found && break 3
5007 done
5008 done
5009 done
5010IFS=$as_save_IFS
5011 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 5012 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5013 fi
5014else
5015 ac_cv_path_GREP=$GREP
7357c5b6 5016fi
81ecdfbb
RW
5017
5018fi
5019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5020$as_echo "$ac_cv_path_GREP" >&6; }
5021 GREP="$ac_cv_path_GREP"
ac48eca1 5022
d7040cdb 5023
81ecdfbb
RW
5024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5025$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 5026if ${ac_cv_path_EGREP+:} false; then :
81ecdfbb 5027 $as_echo_n "(cached) " >&6
7357c5b6 5028else
81ecdfbb
RW
5029 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5030 then ac_cv_path_EGREP="$GREP -E"
5031 else
5032 if test -z "$EGREP"; then
5033 ac_path_EGREP_found=false
5034 # Loop through the user's path and test for each of PROGNAME-LIST
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5037do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_prog in egrep; do
5041 for ac_exec_ext in '' $ac_executable_extensions; do
5042 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5043 as_fn_executable_p "$ac_path_EGREP" || continue
81ecdfbb
RW
5044# Check for GNU ac_path_EGREP and select it if it is found.
5045 # Check for GNU $ac_path_EGREP
5046case `"$ac_path_EGREP" --version 2>&1` in
5047*GNU*)
5048 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5049*)
5050 ac_count=0
5051 $as_echo_n 0123456789 >"conftest.in"
5052 while :
5053 do
5054 cat "conftest.in" "conftest.in" >"conftest.tmp"
5055 mv "conftest.tmp" "conftest.in"
5056 cp "conftest.in" "conftest.nl"
5057 $as_echo 'EGREP' >> "conftest.nl"
5058 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5059 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5060 as_fn_arith $ac_count + 1 && ac_count=$as_val
5061 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5062 # Best one so far, save it but keep looking for a better one
5063 ac_cv_path_EGREP="$ac_path_EGREP"
5064 ac_path_EGREP_max=$ac_count
5065 fi
5066 # 10*(2^10) chars as input seems more than enough
5067 test $ac_count -gt 10 && break
5068 done
5069 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5070esac
5071
5072 $ac_path_EGREP_found && break 3
5073 done
5074 done
5075 done
5076IFS=$as_save_IFS
5077 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 5078 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5079 fi
5080else
5081 ac_cv_path_EGREP=$EGREP
5082fi
5083
5084 fi
5085fi
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5087$as_echo "$ac_cv_path_EGREP" >&6; }
5088 EGREP="$ac_cv_path_EGREP"
5089
5090
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5092$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 5093if ${ac_cv_header_stdc+:} false; then :
81ecdfbb
RW
5094 $as_echo_n "(cached) " >&6
5095else
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5097/* end confdefs.h. */
5098#include <stdlib.h>
5099#include <stdarg.h>
5100#include <string.h>
5101#include <float.h>
d7040cdb 5102
7357c5b6
AM
5103int
5104main ()
5105{
d7040cdb 5106
7357c5b6
AM
5107 ;
5108 return 0;
5109}
5110_ACEOF
81ecdfbb 5111if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6
AM
5112 ac_cv_header_stdc=yes
5113else
81ecdfbb 5114 ac_cv_header_stdc=no
7357c5b6 5115fi
81ecdfbb 5116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d7040cdb 5117
7357c5b6
AM
5118if test $ac_cv_header_stdc = yes; then
5119 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
81ecdfbb 5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5121/* end confdefs.h. */
5122#include <string.h>
d7040cdb 5123
7357c5b6
AM
5124_ACEOF
5125if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5126 $EGREP "memchr" >/dev/null 2>&1; then :
5127
ce2cded5 5128else
7357c5b6
AM
5129 ac_cv_header_stdc=no
5130fi
5131rm -f conftest*
d7040cdb 5132
7357c5b6 5133fi
d7040cdb 5134
7357c5b6
AM
5135if test $ac_cv_header_stdc = yes; then
5136 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
81ecdfbb 5137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5138/* end confdefs.h. */
5139#include <stdlib.h>
ac48eca1 5140
7357c5b6
AM
5141_ACEOF
5142if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb
RW
5143 $EGREP "free" >/dev/null 2>&1; then :
5144
7357c5b6
AM
5145else
5146 ac_cv_header_stdc=no
5147fi
5148rm -f conftest*
d7040cdb 5149
7357c5b6 5150fi
d7040cdb 5151
7357c5b6
AM
5152if test $ac_cv_header_stdc = yes; then
5153 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
81ecdfbb 5154 if test "$cross_compiling" = yes; then :
7357c5b6
AM
5155 :
5156else
81ecdfbb 5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6
AM
5158/* end confdefs.h. */
5159#include <ctype.h>
81ecdfbb 5160#include <stdlib.h>
7357c5b6
AM
5161#if ((' ' & 0x0FF) == 0x020)
5162# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5163# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5164#else
5165# define ISLOWER(c) \
5166 (('a' <= (c) && (c) <= 'i') \
5167 || ('j' <= (c) && (c) <= 'r') \
5168 || ('s' <= (c) && (c) <= 'z'))
5169# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5170#endif
d7040cdb 5171
7357c5b6
AM
5172#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5173int
5174main ()
5175{
5176 int i;
5177 for (i = 0; i < 256; i++)
5178 if (XOR (islower (i), ISLOWER (i))
5179 || toupper (i) != TOUPPER (i))
81ecdfbb
RW
5180 return 2;
5181 return 0;
7357c5b6
AM
5182}
5183_ACEOF
81ecdfbb 5184if ac_fn_c_try_run "$LINENO"; then :
d7040cdb 5185
81ecdfbb
RW
5186else
5187 ac_cv_header_stdc=no
7357c5b6 5188fi
81ecdfbb
RW
5189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5190 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357c5b6 5191fi
81ecdfbb 5192
7357c5b6
AM
5193fi
5194fi
81ecdfbb
RW
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5196$as_echo "$ac_cv_header_stdc" >&6; }
7357c5b6 5197if test $ac_cv_header_stdc = yes; then
d7040cdb 5198
81ecdfbb 5199$as_echo "#define STDC_HEADERS 1" >>confdefs.h
d7040cdb 5200
7357c5b6 5201fi
d7040cdb 5202
7357c5b6 5203# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7357c5b6
AM
5204for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5205 inttypes.h stdint.h unistd.h
81ecdfbb
RW
5206do :
5207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5208ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5209"
d0ac1c44 5210if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7357c5b6 5211 cat >>confdefs.h <<_ACEOF
81ecdfbb 5212#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7357c5b6 5213_ACEOF
ce2cded5 5214
7357c5b6 5215fi
ce2cded5 5216
7357c5b6 5217done
ce2cded5
L
5218
5219
5220
81ecdfbb 5221 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 5222if test "x$ac_cv_header_minix_config_h" = xyes; then :
7357c5b6
AM
5223 MINIX=yes
5224else
5225 MINIX=
5226fi
d7040cdb
SE
5227
5228
7357c5b6 5229 if test "$MINIX" = yes; then
d7040cdb 5230
81ecdfbb 5231$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
d7040cdb
SE
5232
5233
81ecdfbb 5234$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
d7040cdb
SE
5235
5236
81ecdfbb 5237$as_echo "#define _MINIX 1" >>confdefs.h
d7040cdb 5238
7357c5b6 5239 fi
d7040cdb
SE
5240
5241
81ecdfbb
RW
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5243$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 5244if ${ac_cv_safe_to_define___extensions__+:} false; then :
81ecdfbb 5245 $as_echo_n "(cached) " >&6
ac48eca1 5246else
81ecdfbb 5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357c5b6 5248/* end confdefs.h. */
ac48eca1 5249
d0ac1c44
SM
5250# define __EXTENSIONS__ 1
5251 $ac_includes_default
7357c5b6
AM
5252int
5253main ()
5254{
13b2be9c 5255
7357c5b6
AM
5256 ;
5257 return 0;
5258}
5259_ACEOF
81ecdfbb 5260if ac_fn_c_try_compile "$LINENO"; then :
7357c5b6 5261 ac_cv_safe_to_define___extensions__=yes
d6d788bd 5262else
81ecdfbb 5263 ac_cv_safe_to_define___extensions__=no
d6d788bd 5264fi
81ecdfbb 5265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357c5b6 5266fi
81ecdfbb
RW
5267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5268$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7357c5b6 5269 test $ac_cv_safe_to_define___extensions__ = yes &&
81ecdfbb 5270 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
d6d788bd 5271
81ecdfbb 5272 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
d6d788bd 5273
81ecdfbb 5274 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
252b5132 5275
81ecdfbb 5276 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
252b5132 5277
81ecdfbb 5278 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
d6d788bd 5279
a74801ba 5280
d053aef8 5281
81ecdfbb 5282
da2f07f1 5283
718a6fd8
SE
5284case `pwd` in
5285 *\ * | *\ *)
81ecdfbb
RW
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5287$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
718a6fd8 5288esac
13b2be9c 5289
252b5132 5290
7357c5b6 5291
f2c621e4
AS
5292macro_version='2.2.7a'
5293macro_revision='1.3134'
7357c5b6
AM
5294
5295
5296
5297
5298
5299
7357c5b6
AM
5300
5301
5302
5303
5304
5305
5306
718a6fd8 5307ltmain="$ac_aux_dir/ltmain.sh"
7357c5b6 5308
3725885a
RW
5309# Backslashify metacharacters that are still active within
5310# double-quoted strings.
5311sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5312
5313# Same as above, but do not quote variable references.
5314double_quote_subst='s/\(["`\\]\)/\\\1/g'
5315
5316# Sed substitution to delay expansion of an escaped shell variable in a
5317# double_quote_subst'ed string.
5318delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5319
5320# Sed substitution to delay expansion of an escaped single quote.
5321delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5322
5323# Sed substitution to avoid accidental globbing in evaled expressions
5324no_glob_subst='s/\*/\\\*/g'
5325
5326ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5327ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5328ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5329
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5331$as_echo_n "checking how to print strings... " >&6; }
5332# Test print first, because it will be a builtin if present.
f2c621e4 5333if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3725885a
RW
5334 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5335 ECHO='print -r --'
5336elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5337 ECHO='printf %s\n'
5338else
5339 # Use this function as a fallback that always works.
5340 func_fallback_echo ()
5341 {
5342 eval 'cat <<_LTECHO_EOF
5343$1
5344_LTECHO_EOF'
5345 }
5346 ECHO='func_fallback_echo'
5347fi
5348
5349# func_echo_all arg...
5350# Invoke $ECHO with all args, space-separated.
5351func_echo_all ()
5352{
5353 $ECHO ""
5354}
5355
5356case "$ECHO" in
5357 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5358$as_echo "printf" >&6; } ;;
5359 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5360$as_echo "print -r" >&6; } ;;
5361 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5362$as_echo "cat" >&6; } ;;
5363esac
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
81ecdfbb
RW
5378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5379$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 5380if ${ac_cv_path_SED+:} false; then :
81ecdfbb
RW
5381 $as_echo_n "(cached) " >&6
5382else
5383 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5384 for ac_i in 1 2 3 4 5 6 7; do
5385 ac_script="$ac_script$as_nl$ac_script"
5386 done
5387 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5388 { ac_script=; unset ac_script;}
5389 if test -z "$SED"; then
5390 ac_path_SED_found=false
5391 # Loop through the user's path and test for each of PROGNAME-LIST
5392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357c5b6
AM
5393for as_dir in $PATH
5394do
5395 IFS=$as_save_IFS
5396 test -z "$as_dir" && as_dir=.
81ecdfbb 5397 for ac_prog in sed gsed; do
7357c5b6 5398 for ac_exec_ext in '' $ac_executable_extensions; do
81ecdfbb 5399 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5400 as_fn_executable_p "$ac_path_SED" || continue
81ecdfbb
RW
5401# Check for GNU ac_path_SED and select it if it is found.
5402 # Check for GNU $ac_path_SED
5403case `"$ac_path_SED" --version 2>&1` in
5404*GNU*)
5405 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5406*)
5407 ac_count=0
5408 $as_echo_n 0123456789 >"conftest.in"
5409 while :
5410 do
5411 cat "conftest.in" "conftest.in" >"conftest.tmp"
5412 mv "conftest.tmp" "conftest.in"
5413 cp "conftest.in" "conftest.nl"
5414 $as_echo '' >> "conftest.nl"
5415 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5416 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5417 as_fn_arith $ac_count + 1 && ac_count=$as_val
5418 if test $ac_count -gt ${ac_path_SED_max-0}; then
5419 # Best one so far, save it but keep looking for a better one
5420 ac_cv_path_SED="$ac_path_SED"
5421 ac_path_SED_max=$ac_count
5422 fi
5423 # 10*(2^10) chars as input seems more than enough
5424 test $ac_count -gt 10 && break
5425 done
5426 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5427esac
5428
5429 $ac_path_SED_found && break 3
7357c5b6
AM
5430 done
5431 done
81ecdfbb 5432 done
7357c5b6 5433IFS=$as_save_IFS
81ecdfbb 5434 if test -z "$ac_cv_path_SED"; then
d0ac1c44 5435 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7357c5b6 5436 fi
81ecdfbb
RW
5437else
5438 ac_cv_path_SED=$SED
7357c5b6
AM
5439fi
5440
81ecdfbb
RW
5441fi
5442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5443$as_echo "$ac_cv_path_SED" >&6; }
5444 SED="$ac_cv_path_SED"
5445 rm -f conftest.sed
7357c5b6
AM
5446
5447test -z "$SED" && SED=sed
5448Xsed="$SED -e 1s/^X//"
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
81ecdfbb
RW
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5461$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 5462if ${ac_cv_path_FGREP+:} false; then :
81ecdfbb 5463 $as_echo_n "(cached) " >&6
7357c5b6 5464else
81ecdfbb
RW
5465 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5466 then ac_cv_path_FGREP="$GREP -F"
5467 else
5468 if test -z "$FGREP"; then
5469 ac_path_FGREP_found=false
5470 # Loop through the user's path and test for each of PROGNAME-LIST
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5473do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_prog in fgrep; do
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 5479 as_fn_executable_p "$ac_path_FGREP" || continue
81ecdfbb
RW
5480# Check for GNU ac_path_FGREP and select it if it is found.
5481 # Check for GNU $ac_path_FGREP
5482case `"$ac_path_FGREP" --version 2>&1` in
5483*GNU*)
5484 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5485*)
5486 ac_count=0
5487 $as_echo_n 0123456789 >"conftest.in"
5488 while :
5489 do
5490 cat "conftest.in" "conftest.in" >"conftest.tmp"
5491 mv "conftest.tmp" "conftest.in"
5492 cp "conftest.in" "conftest.nl"
5493 $as_echo 'FGREP' >> "conftest.nl"
5494 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5496 as_fn_arith $ac_count + 1 && ac_count=$as_val
5497 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5498 # Best one so far, save it but keep looking for a better one
5499 ac_cv_path_FGREP="$ac_path_FGREP"
5500 ac_path_FGREP_max=$ac_count
7357c5b6 5501 fi
81ecdfbb
RW
5502 # 10*(2^10) chars as input seems more than enough
5503 test $ac_count -gt 10 && break
5504 done
5505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5506esac
5507
5508 $ac_path_FGREP_found && break 3
5509 done
5510 done
5511 done
5512IFS=$as_save_IFS
5513 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 5514 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
81ecdfbb
RW
5515 fi
5516else
5517 ac_cv_path_FGREP=$FGREP
7357c5b6 5518fi
81ecdfbb
RW
5519
5520 fi
5521fi
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5523$as_echo "$ac_cv_path_FGREP" >&6; }
5524 FGREP="$ac_cv_path_FGREP"
7357c5b6
AM
5525
5526
5527test -z "$GREP" && GREP=grep
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
81ecdfbb
RW
5547# Check whether --with-gnu-ld was given.
5548if test "${with_gnu_ld+set}" = set; then :
5549 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7357c5b6
AM
5550else
5551 with_gnu_ld=no
81ecdfbb
RW
5552fi
5553
ce2cded5
L
5554ac_prog=ld
5555if test "$GCC" = yes; then
5556 # Check if gcc -print-prog-name=ld gives a path.
81ecdfbb
RW
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5558$as_echo_n "checking for ld used by $CC... " >&6; }
ce2cded5
L
5559 case $host in
5560 *-*-mingw*)
5561 # gcc leaves a trailing carriage return which upsets mingw
5562 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5563 *)
5564 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5565 esac
5566 case $ac_prog in
5567 # Accept absolute paths.
5568 [\\/]* | ?:[\\/]*)
5569 re_direlt='/[^/][^/]*/\.\./'
5570 # Canonicalize the pathname of ld
5571 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5572 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5573 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5574 done
5575 test -z "$LD" && LD="$ac_prog"
5576 ;;
5577 "")
5578 # If it fails, then pretend we aren't using GCC.
5579 ac_prog=ld
5580 ;;
5581 *)
5582 # If it is relative, then search for the first ld in PATH.
5583 with_gnu_ld=unknown
5584 ;;
5585 esac
5586elif test "$with_gnu_ld" = yes; then
81ecdfbb
RW
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5588$as_echo_n "checking for GNU ld... " >&6; }
ce2cded5 5589else
81ecdfbb
RW
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5591$as_echo_n "checking for non-GNU ld... " >&6; }
ce2cded5 5592fi
d0ac1c44 5593if ${lt_cv_path_LD+:} false; then :
81ecdfbb 5594 $as_echo_n "(cached) " >&6
ce2cded5
L
5595else
5596 if test -z "$LD"; then
5597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5598 for ac_dir in $PATH; do
5599 IFS="$lt_save_ifs"
5600 test -z "$ac_dir" && ac_dir=.
5601 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5602 lt_cv_path_LD="$ac_dir/$ac_prog"
5603 # Check to see if the program is GNU ld. I'd rather use --version,
5604 # but apparently some variants of GNU ld only accept -v.
5605 # Break only if it was the GNU/non-GNU ld that we prefer.
5606 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5607 *GNU* | *'with BFD'*)
5608 test "$with_gnu_ld" != no && break
5609 ;;
5610 *)
5611 test "$with_gnu_ld" != yes && break
5612 ;;
5613 esac
5614 fi
5615 done
5616 IFS="$lt_save_ifs"
5617else
5618 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5619fi
5620fi
5621
5622LD="$lt_cv_path_LD"
5623if test -n "$LD"; then
81ecdfbb
RW
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5625$as_echo "$LD" >&6; }
ce2cded5 5626else
81ecdfbb
RW
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5628$as_echo "no" >&6; }
ce2cded5 5629fi
d0ac1c44 5630test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
81ecdfbb
RW
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5632$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 5633if ${lt_cv_prog_gnu_ld+:} false; then :
81ecdfbb 5634 $as_echo_n "(cached) " >&6
ce2cded5
L
5635else
5636 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5637case `$LD -v 2>&1 </dev/null` in
5638*GNU* | *'with BFD'*)
5639 lt_cv_prog_gnu_ld=yes
5640 ;;
5641*)
5642 lt_cv_prog_gnu_ld=no
5643 ;;
5644esac
5645fi
81ecdfbb
RW
5646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5647$as_echo "$lt_cv_prog_gnu_ld" >&6; }
ce2cded5
L
5648with_gnu_ld=$lt_cv_prog_gnu_ld
5649
5650
5651
5652
5653
5654
5655
5656
5657
81ecdfbb
RW
5658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5659$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 5660if ${lt_cv_path_NM+:} false; then :
81ecdfbb 5661 $as_echo_n "(cached) " >&6
ce2cded5
L
5662else
5663 if test -n "$NM"; then
5664 # Let the user override the test.
5665 lt_cv_path_NM="$NM"
5666else
5667 lt_nm_to_check="${ac_tool_prefix}nm"
5668 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5669 lt_nm_to_check="$lt_nm_to_check nm"
5670 fi
5671 for lt_tmp_nm in $lt_nm_to_check; do
5672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5673 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5674 IFS="$lt_save_ifs"
5675 test -z "$ac_dir" && ac_dir=.
5676 tmp_nm="$ac_dir/$lt_tmp_nm"
5677 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5678 # Check to see if the nm accepts a BSD-compat flag.
5679 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5680 # nm: unknown option "B" ignored
5681 # Tru64's nm complains that /dev/null is an invalid object file
5682 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5683 */dev/null* | *'Invalid file or object type'*)
5684 lt_cv_path_NM="$tmp_nm -B"
5685 break
5686 ;;
5687 *)
5688 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5689 */dev/null*)
5690 lt_cv_path_NM="$tmp_nm -p"
5691 break
5692 ;;
5693 *)
5694 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5695 continue # so that we can try to find one that supports BSD flags
5696 ;;
5697 esac
5698 ;;
5699 esac
5700 fi
5701 done
5702 IFS="$lt_save_ifs"
5703 done
5704 : ${lt_cv_path_NM=no}
5705fi
5706fi
81ecdfbb
RW
5707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5708$as_echo "$lt_cv_path_NM" >&6; }
ce2cded5
L
5709if test "$lt_cv_path_NM" != "no"; then
5710 NM="$lt_cv_path_NM"
5711else
5712 # Didn't find any BSD compatible name lister, look for dumpbin.
3725885a
RW
5713 if test -n "$DUMPBIN"; then :
5714 # Let the user override the test.
5715 else
5716 if test -n "$ac_tool_prefix"; then
5717 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5718 do
5719 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5720set dummy $ac_tool_prefix$ac_prog; ac_word=$2
81ecdfbb
RW
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5723if ${ac_cv_prog_DUMPBIN+:} false; then :
81ecdfbb 5724 $as_echo_n "(cached) " >&6
d7040cdb 5725else
ce2cded5
L
5726 if test -n "$DUMPBIN"; then
5727 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
d7040cdb
SE
5728else
5729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730for as_dir in $PATH
5731do
5732 IFS=$as_save_IFS
5733 test -z "$as_dir" && as_dir=.
81ecdfbb 5734 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 5736 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
81ecdfbb 5737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 5738 break 2
d70c5fc7 5739 fi
d7040cdb 5740done
81ecdfbb
RW
5741 done
5742IFS=$as_save_IFS
d70c5fc7 5743
d7040cdb
SE
5744fi
5745fi
ce2cded5
L
5746DUMPBIN=$ac_cv_prog_DUMPBIN
5747if test -n "$DUMPBIN"; then
81ecdfbb
RW
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5749$as_echo "$DUMPBIN" >&6; }
bedf545c 5750else
81ecdfbb
RW
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752$as_echo "no" >&6; }
d7040cdb 5753fi
13b2be9c 5754
81ecdfbb 5755
ce2cded5
L
5756 test -n "$DUMPBIN" && break
5757 done
5758fi
5759if test -z "$DUMPBIN"; then
5760 ac_ct_DUMPBIN=$DUMPBIN
3725885a 5761 for ac_prog in dumpbin "link -dump"
ce2cded5
L
5762do
5763 # Extract the first word of "$ac_prog", so it can be a program name with args.
5764set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
5765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5767if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
81ecdfbb 5768 $as_echo_n "(cached) " >&6
d7040cdb 5769else
ce2cded5
L
5770 if test -n "$ac_ct_DUMPBIN"; then
5771 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5772else
5773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774for as_dir in $PATH
5775do
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
81ecdfbb 5778 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 5780 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
81ecdfbb 5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
5782 break 2
5783 fi
5784done
81ecdfbb
RW
5785 done
5786IFS=$as_save_IFS
ce2cded5
L
5787
5788fi
5789fi
5790ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5791if test -n "$ac_ct_DUMPBIN"; then
81ecdfbb
RW
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5793$as_echo "$ac_ct_DUMPBIN" >&6; }
ce2cded5 5794else
81ecdfbb
RW
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796$as_echo "no" >&6; }
d7040cdb
SE
5797fi
5798
81ecdfbb 5799
ce2cded5
L
5800 test -n "$ac_ct_DUMPBIN" && break
5801done
13b2be9c 5802
81ecdfbb
RW
5803 if test "x$ac_ct_DUMPBIN" = x; then
5804 DUMPBIN=":"
5805 else
5806 case $cross_compiling:$ac_tool_warned in
5807yes:)
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5810ac_tool_warned=yes ;;
5811esac
5812 DUMPBIN=$ac_ct_DUMPBIN
5813 fi
ce2cded5 5814fi
13b2be9c 5815
3725885a
RW
5816 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5817 *COFF*)
5818 DUMPBIN="$DUMPBIN -symbols"
5819 ;;
5820 *)
5821 DUMPBIN=:
5822 ;;
5823 esac
5824 fi
bedf545c 5825
ce2cded5
L
5826 if test "$DUMPBIN" != ":"; then
5827 NM="$DUMPBIN"
5828 fi
5829fi
5830test -z "$NM" && NM=nm
6840198f 5831
13b2be9c 5832
ac48eca1 5833
d7040cdb 5834
ce2cded5
L
5835
5836
81ecdfbb
RW
5837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5838$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 5839if ${lt_cv_nm_interface+:} false; then :
81ecdfbb 5840 $as_echo_n "(cached) " >&6
ce2cded5
L
5841else
5842 lt_cv_nm_interface="BSD nm"
5843 echo "int some_variable = 0;" > conftest.$ac_ext
3725885a 5844 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
ce2cded5
L
5845 (eval "$ac_compile" 2>conftest.err)
5846 cat conftest.err >&5
3725885a 5847 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
ce2cded5
L
5848 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5849 cat conftest.err >&5
3725885a 5850 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
ce2cded5
L
5851 cat conftest.out >&5
5852 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5853 lt_cv_nm_interface="MS dumpbin"
5854 fi
5855 rm -f conftest*
5856fi
81ecdfbb
RW
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5858$as_echo "$lt_cv_nm_interface" >&6; }
ce2cded5 5859
81ecdfbb
RW
5860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5861$as_echo_n "checking whether ln -s works... " >&6; }
ce2cded5
L
5862LN_S=$as_ln_s
5863if test "$LN_S" = "ln -s"; then
81ecdfbb
RW
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5865$as_echo "yes" >&6; }
ce2cded5 5866else
81ecdfbb
RW
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5868$as_echo "no, using $LN_S" >&6; }
ce2cded5
L
5869fi
5870
5871# find the maximum length of command line arguments
81ecdfbb
RW
5872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5873$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 5874if ${lt_cv_sys_max_cmd_len+:} false; then :
81ecdfbb 5875 $as_echo_n "(cached) " >&6
ce2cded5
L
5876else
5877 i=0
5878 teststring="ABCD"
5879
5880 case $build_os in
5881 msdosdjgpp*)
5882 # On DJGPP, this test can blow up pretty badly due to problems in libc
5883 # (any single argument exceeding 2000 bytes causes a buffer overrun
5884 # during glob expansion). Even if it were fixed, the result of this
5885 # check would be larger than it should be.
5886 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5887 ;;
5888
5889 gnu*)
5890 # Under GNU Hurd, this test is not required because there is
5891 # no limit to the length of command line arguments.
5892 # Libtool will interpret -1 as no limit whatsoever
5893 lt_cv_sys_max_cmd_len=-1;
5894 ;;
5895
718a6fd8 5896 cygwin* | mingw* | cegcc*)
ce2cded5
L
5897 # On Win9x/ME, this test blows up -- it succeeds, but takes
5898 # about 5 minutes as the teststring grows exponentially.
5899 # Worse, since 9x/ME are not pre-emptively multitasking,
5900 # you end up with a "frozen" computer, even though with patience
5901 # the test eventually succeeds (with a max line length of 256k).
5902 # Instead, let's just punt: use the minimum linelength reported by
5903 # all of the supported platforms: 8192 (on NT/2K/XP).
5904 lt_cv_sys_max_cmd_len=8192;
5905 ;;
5906
3725885a
RW
5907 mint*)
5908 # On MiNT this can take a long time and run out of memory.
5909 lt_cv_sys_max_cmd_len=8192;
5910 ;;
5911
ce2cded5
L
5912 amigaos*)
5913 # On AmigaOS with pdksh, this test takes hours, literally.
5914 # So we just punt and use a minimum line length of 8192.
5915 lt_cv_sys_max_cmd_len=8192;
5916 ;;
5917
5918 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5919 # This has been around since 386BSD, at least. Likely further.
5920 if test -x /sbin/sysctl; then
5921 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5922 elif test -x /usr/sbin/sysctl; then
5923 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5924 else
5925 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5926 fi
5927 # And add a safety zone
5928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5929 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5930 ;;
5931
5932 interix*)
5933 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5934 lt_cv_sys_max_cmd_len=196608
5935 ;;
5936
5937 osf*)
5938 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5939 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5940 # nice to cause kernel panics so lets avoid the loop below.
5941 # First set a reasonable default.
5942 lt_cv_sys_max_cmd_len=16384
5943 #
5944 if test -x /sbin/sysconfig; then
5945 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5946 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5947 esac
5948 fi
5949 ;;
5950 sco3.2v5*)
5951 lt_cv_sys_max_cmd_len=102400
5952 ;;
5953 sysv5* | sco5v6* | sysv4.2uw2*)
5954 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5955 if test -n "$kargmax"; then
5956 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5957 else
5958 lt_cv_sys_max_cmd_len=32768
5959 fi
d7040cdb
SE
5960 ;;
5961 *)
718a6fd8
SE
5962 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5963 if test -n "$lt_cv_sys_max_cmd_len"; then
ce2cded5
L
5964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5965 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5966 else
5967 # Make teststring a little bigger before we do anything with it.
5968 # a 1K string should be a reasonable start.
5969 for i in 1 2 3 4 5 6 7 8 ; do
5970 teststring=$teststring$teststring
5971 done
5972 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5973 # If test is not a shell built-in, we'll probably end up computing a
5974 # maximum length that is only half of the actual maximum length, but
5975 # we can't tell.
3725885a
RW
5976 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5977 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
ce2cded5
L
5978 test $i != 17 # 1/2 MB should be enough
5979 do
5980 i=`expr $i + 1`
5981 teststring=$teststring$teststring
5982 done
5983 # Only check the string length outside the loop.
5984 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5985 teststring=
5986 # Add a significant safety factor because C++ compilers can tack on
5987 # massive amounts of additional arguments before passing them to the
5988 # linker. It appears as though 1/2 is a usable value.
5989 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5990 fi
d7040cdb
SE
5991 ;;
5992 esac
252b5132 5993
ce2cded5 5994fi
d6d788bd 5995
ce2cded5 5996if test -n $lt_cv_sys_max_cmd_len ; then
81ecdfbb
RW
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5998$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
ce2cded5 5999else
81ecdfbb
RW
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6001$as_echo "none" >&6; }
ce2cded5
L
6002fi
6003max_cmd_len=$lt_cv_sys_max_cmd_len
252b5132 6004
d6d788bd 6005
13b2be9c 6006
13b2be9c 6007
bedf545c 6008
252b5132 6009
ce2cded5
L
6010: ${CP="cp -f"}
6011: ${MV="mv -f"}
6012: ${RM="rm -f"}
d6d788bd 6013
81ecdfbb
RW
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6015$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
ce2cded5
L
6016# Try some XSI features
6017xsi_shell=no
6018( _lt_dummy="a/b/c"
f2c621e4
AS
6019 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6020 = c,a/b,, \
718a6fd8
SE
6021 && eval 'test $(( 1 + 1 )) -eq 2 \
6022 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
ce2cded5 6023 && xsi_shell=yes
81ecdfbb
RW
6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6025$as_echo "$xsi_shell" >&6; }
bedf545c 6026
bedf545c 6027
81ecdfbb
RW
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6029$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
ce2cded5
L
6030lt_shell_append=no
6031( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6032 >/dev/null 2>&1 \
6033 && lt_shell_append=yes
81ecdfbb
RW
6034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6035$as_echo "$lt_shell_append" >&6; }
252b5132 6036
d6d788bd 6037
ce2cded5
L
6038if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6039 lt_unset=unset
6040else
6041 lt_unset=false
6042fi
13b2be9c
DJ
6043
6044
6045
6046
d6d788bd 6047
ce2cded5
L
6048# test EBCDIC or ASCII
6049case `echo X|tr X '\101'` in
6050 A) # ASCII based system
6051 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6052 lt_SP2NL='tr \040 \012'
6053 lt_NL2SP='tr \015\012 \040\040'
6054 ;;
6055 *) # EBCDIC based system
6056 lt_SP2NL='tr \100 \n'
6057 lt_NL2SP='tr \r\n \100\100'
6058 ;;
6059esac
c43a438d 6060
c43a438d 6061
c43a438d 6062
252b5132 6063
ad22bfe8 6064
1ad12f97 6065
1ad12f97 6066
9e9b66a9 6067
1ad12f97 6068
81ecdfbb
RW
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6070$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 6071if ${lt_cv_ld_reload_flag+:} false; then :
81ecdfbb 6072 $as_echo_n "(cached) " >&6
ce2cded5
L
6073else
6074 lt_cv_ld_reload_flag='-r'
6075fi
81ecdfbb
RW
6076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6077$as_echo "$lt_cv_ld_reload_flag" >&6; }
ce2cded5
L
6078reload_flag=$lt_cv_ld_reload_flag
6079case $reload_flag in
6080"" | " "*) ;;
6081*) reload_flag=" $reload_flag" ;;
6082esac
6083reload_cmds='$LD$reload_flag -o $output$reload_objs'
6084case $host_os in
6085 darwin*)
6086 if test "$GCC" = yes; then
6087 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6088 else
6089 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6090 fi
6091 ;;
6092esac
a541e3ce 6093
9e9b66a9 6094
a2d91340 6095
d6d788bd 6096
9e9b66a9
AM
6097
6098
6099
d6d788bd 6100
252b5132 6101
718a6fd8
SE
6102if test -n "$ac_tool_prefix"; then
6103 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6104set dummy ${ac_tool_prefix}objdump; ac_word=$2
81ecdfbb
RW
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6107if ${ac_cv_prog_OBJDUMP+:} false; then :
81ecdfbb 6108 $as_echo_n "(cached) " >&6
718a6fd8
SE
6109else
6110 if test -n "$OBJDUMP"; then
6111 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6112else
6113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114for as_dir in $PATH
6115do
6116 IFS=$as_save_IFS
6117 test -z "$as_dir" && as_dir=.
81ecdfbb 6118 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6120 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
81ecdfbb 6121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6122 break 2
6123 fi
6124done
81ecdfbb
RW
6125 done
6126IFS=$as_save_IFS
718a6fd8
SE
6127
6128fi
6129fi
6130OBJDUMP=$ac_cv_prog_OBJDUMP
6131if test -n "$OBJDUMP"; then
81ecdfbb
RW
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6133$as_echo "$OBJDUMP" >&6; }
718a6fd8 6134else
81ecdfbb
RW
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6136$as_echo "no" >&6; }
718a6fd8
SE
6137fi
6138
81ecdfbb 6139
718a6fd8
SE
6140fi
6141if test -z "$ac_cv_prog_OBJDUMP"; then
6142 ac_ct_OBJDUMP=$OBJDUMP
6143 # Extract the first word of "objdump", so it can be a program name with args.
6144set dummy objdump; ac_word=$2
81ecdfbb
RW
6145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6146$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6147if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
81ecdfbb 6148 $as_echo_n "(cached) " >&6
718a6fd8
SE
6149else
6150 if test -n "$ac_ct_OBJDUMP"; then
6151 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6152else
6153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154for as_dir in $PATH
6155do
6156 IFS=$as_save_IFS
6157 test -z "$as_dir" && as_dir=.
81ecdfbb 6158 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 6160 ac_cv_prog_ac_ct_OBJDUMP="objdump"
81ecdfbb 6161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
6162 break 2
6163 fi
6164done
81ecdfbb
RW
6165 done
6166IFS=$as_save_IFS
718a6fd8 6167
718a6fd8
SE
6168fi
6169fi
6170ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6171if test -n "$ac_ct_OBJDUMP"; then
81ecdfbb
RW
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6173$as_echo "$ac_ct_OBJDUMP" >&6; }
718a6fd8 6174else
81ecdfbb
RW
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176$as_echo "no" >&6; }
718a6fd8
SE
6177fi
6178
81ecdfbb
RW
6179 if test "x$ac_ct_OBJDUMP" = x; then
6180 OBJDUMP="false"
6181 else
6182 case $cross_compiling:$ac_tool_warned in
6183yes:)
6184{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6186ac_tool_warned=yes ;;
6187esac
6188 OBJDUMP=$ac_ct_OBJDUMP
6189 fi
718a6fd8
SE
6190else
6191 OBJDUMP="$ac_cv_prog_OBJDUMP"
6192fi
6193
6194test -z "$OBJDUMP" && OBJDUMP=objdump
6195
6196
6197
6198
6199
6200
6201
6202
13b2be9c 6203
81ecdfbb
RW
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6205$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 6206if ${lt_cv_deplibs_check_method+:} false; then :
81ecdfbb 6207 $as_echo_n "(cached) " >&6
d7040cdb 6208else
ce2cded5
L
6209 lt_cv_file_magic_cmd='$MAGIC_CMD'
6210lt_cv_file_magic_test_file=
6211lt_cv_deplibs_check_method='unknown'
6212# Need to set the preceding variable on all platforms that support
6213# interlibrary dependencies.
6214# 'none' -- dependencies not supported.
6215# `unknown' -- same as none, but documents that we really don't know.
6216# 'pass_all' -- all dependencies passed with no checks.
6217# 'test_compile' -- check by making test program.
6218# 'file_magic [[regex]]' -- check by looking for files in library path
6219# which responds to the $file_magic_cmd with a given extended regex.
6220# If you have `file' or equivalent on your system and you're not sure
6221# whether `pass_all' will *always* work, you probably want this one.
13b2be9c 6222
ce2cded5 6223case $host_os in
50e7d84b 6224aix[4-9]*)
ce2cded5
L
6225 lt_cv_deplibs_check_method=pass_all
6226 ;;
d7040cdb 6227
ce2cded5
L
6228beos*)
6229 lt_cv_deplibs_check_method=pass_all
6230 ;;
d7040cdb 6231
ce2cded5
L
6232bsdi[45]*)
6233 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6234 lt_cv_file_magic_cmd='/usr/bin/file -L'
6235 lt_cv_file_magic_test_file=/shlib/libc.so
6236 ;;
d7040cdb 6237
ce2cded5
L
6238cygwin*)
6239 # func_win32_libid is a shell function defined in ltmain.sh
6240 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6241 lt_cv_file_magic_cmd='func_win32_libid'
d7040cdb 6242 ;;
ce2cded5
L
6243
6244mingw* | pw32*)
6245 # Base MSYS/MinGW do not provide the 'file' command needed by
6246 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6247 # unless we find 'file', for example because we are cross-compiling.
3725885a
RW
6248 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6249 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
ce2cded5
L
6250 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6251 lt_cv_file_magic_cmd='func_win32_libid'
6252 else
f2c621e4 6253 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
ce2cded5
L
6254 lt_cv_file_magic_cmd='$OBJDUMP -f'
6255 fi
d7040cdb 6256 ;;
ce2cded5 6257
3725885a 6258cegcc*)
718a6fd8
SE
6259 # use the weaker test based on 'objdump'. See mingw*.
6260 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6261 lt_cv_file_magic_cmd='$OBJDUMP -f'
6262 ;;
6263
ce2cded5
L
6264darwin* | rhapsody*)
6265 lt_cv_deplibs_check_method=pass_all
6266 ;;
6267
6268freebsd* | dragonfly*)
6269 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6270 case $host_cpu in
6271 i*86 )
6272 # Not sure whether the presence of OpenBSD here was a mistake.
6273 # Let's accept both of them until this is cleared up.
6274 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6275 lt_cv_file_magic_cmd=/usr/bin/file
6276 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6277 ;;
6278 esac
6279 else
6280 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6281 fi
6282 ;;
ce2cded5
L
6283
6284gnu*)
6285 lt_cv_deplibs_check_method=pass_all
d7040cdb 6286 ;;
ce2cded5 6287
3725885a
RW
6288haiku*)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
6291
ce2cded5
L
6292hpux10.20* | hpux11*)
6293 lt_cv_file_magic_cmd=/usr/bin/file
6294 case $host_cpu in
6295 ia64*)
6296 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6297 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6298 ;;
6299 hppa*64*)
3725885a 6300 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]'
ce2cded5
L
6301 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6302 ;;
6303 *)
3725885a 6304 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
ce2cded5
L
6305 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6306 ;;
6307 esac
d7040cdb 6308 ;;
ce2cded5
L
6309
6310interix[3-9]*)
6311 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6312 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
d7040cdb 6313 ;;
ce2cded5
L
6314
6315irix5* | irix6* | nonstopux*)
6316 case $LD in
6317 *-32|*"-32 ") libmagic=32-bit;;
6318 *-n32|*"-n32 ") libmagic=N32;;
6319 *-64|*"-64 ") libmagic=64-bit;;
6320 *) libmagic=never-match;;
6321 esac
6322 lt_cv_deplibs_check_method=pass_all
d7040cdb 6323 ;;
ce2cded5
L
6324
6325# This must be Linux ELF.
58e24671 6326linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 6327 lt_cv_deplibs_check_method=pass_all
d7040cdb 6328 ;;
ce2cded5
L
6329
6330netbsd*)
6331 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6333 else
6334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6335 fi
d7040cdb 6336 ;;
ce2cded5
L
6337
6338newos6*)
6339 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6340 lt_cv_file_magic_cmd=/usr/bin/file
6341 lt_cv_file_magic_test_file=/usr/lib/libnls.so
d7040cdb 6342 ;;
76a27922 6343
ce2cded5
L
6344*nto* | *qnx*)
6345 lt_cv_deplibs_check_method=pass_all
6346 ;;
d6d788bd 6347
ce2cded5
L
6348openbsd*)
6349 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6351 else
6352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6353 fi
6354 ;;
44f2f9d2 6355
ce2cded5
L
6356osf3* | osf4* | osf5*)
6357 lt_cv_deplibs_check_method=pass_all
6358 ;;
44f2f9d2 6359
ce2cded5
L
6360rdos*)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363
6364solaris*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367
6368sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6369 lt_cv_deplibs_check_method=pass_all
6370 ;;
6371
6372sysv4 | sysv4.3*)
6373 case $host_vendor in
6374 motorola)
6375 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]'
6376 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6377 ;;
6378 ncr)
6379 lt_cv_deplibs_check_method=pass_all
6380 ;;
6381 sequent)
6382 lt_cv_file_magic_cmd='/bin/file'
6383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6384 ;;
6385 sni)
6386 lt_cv_file_magic_cmd='/bin/file'
6387 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6388 lt_cv_file_magic_test_file=/lib/libc.so
6389 ;;
6390 siemens)
6391 lt_cv_deplibs_check_method=pass_all
6392 ;;
6393 pc)
6394 lt_cv_deplibs_check_method=pass_all
6395 ;;
6396 esac
6397 ;;
6398
6399tpf*)
6400 lt_cv_deplibs_check_method=pass_all
d7040cdb
SE
6401 ;;
6402esac
6403
ce2cded5 6404fi
81ecdfbb
RW
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6406$as_echo "$lt_cv_deplibs_check_method" >&6; }
ce2cded5
L
6407file_magic_cmd=$lt_cv_file_magic_cmd
6408deplibs_check_method=$lt_cv_deplibs_check_method
6409test -z "$deplibs_check_method" && deplibs_check_method=unknown
d7040cdb 6410
d7040cdb 6411
d7040cdb 6412
d7040cdb 6413
d7040cdb 6414
44f2f9d2 6415
d7040cdb 6416
d7040cdb 6417
d7040cdb 6418
d7040cdb 6419
44f2f9d2 6420
d7040cdb 6421
ce2cded5 6422if test -n "$ac_tool_prefix"; then
f2c621e4
AS
6423 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6424set dummy ${ac_tool_prefix}ar; ac_word=$2
81ecdfbb
RW
6425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6426$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6427if ${ac_cv_prog_AR+:} false; then :
81ecdfbb 6428 $as_echo_n "(cached) " >&6
ce2cded5
L
6429else
6430 if test -n "$AR"; then
6431 ac_cv_prog_AR="$AR" # Let the user override the test.
6432else
6433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6434for as_dir in $PATH
6435do
6436 IFS=$as_save_IFS
6437 test -z "$as_dir" && as_dir=.
81ecdfbb 6438 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f2c621e4 6440 ac_cv_prog_AR="${ac_tool_prefix}ar"
81ecdfbb 6441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6442 break 2
d7040cdb
SE
6443 fi
6444done
81ecdfbb
RW
6445 done
6446IFS=$as_save_IFS
44f2f9d2 6447
ce2cded5
L
6448fi
6449fi
6450AR=$ac_cv_prog_AR
6451if test -n "$AR"; then
81ecdfbb
RW
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6453$as_echo "$AR" >&6; }
ce2cded5 6454else
81ecdfbb
RW
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6456$as_echo "no" >&6; }
44f2f9d2 6457fi
d7040cdb 6458
81ecdfbb 6459
d7040cdb 6460fi
f2c621e4 6461if test -z "$ac_cv_prog_AR"; then
ce2cded5 6462 ac_ct_AR=$AR
f2c621e4
AS
6463 # Extract the first word of "ar", so it can be a program name with args.
6464set dummy ar; ac_word=$2
81ecdfbb
RW
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6466$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6467if ${ac_cv_prog_ac_ct_AR+:} false; then :
81ecdfbb 6468 $as_echo_n "(cached) " >&6
44f2f9d2 6469else
ce2cded5
L
6470 if test -n "$ac_ct_AR"; then
6471 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6472else
6473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH
6475do
6476 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=.
81ecdfbb 6478 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
f2c621e4 6480 ac_cv_prog_ac_ct_AR="ar"
81ecdfbb 6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6482 break 2
6483 fi
6484done
81ecdfbb
RW
6485 done
6486IFS=$as_save_IFS
ce2cded5 6487
ce2cded5
L
6488fi
6489fi
6490ac_ct_AR=$ac_cv_prog_ac_ct_AR
6491if test -n "$ac_ct_AR"; then
81ecdfbb
RW
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6493$as_echo "$ac_ct_AR" >&6; }
ce2cded5 6494else
81ecdfbb
RW
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496$as_echo "no" >&6; }
d7040cdb 6497fi
44f2f9d2 6498
81ecdfbb
RW
6499 if test "x$ac_ct_AR" = x; then
6500 AR="false"
6501 else
6502 case $cross_compiling:$ac_tool_warned in
6503yes:)
6504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6506ac_tool_warned=yes ;;
6507esac
6508 AR=$ac_ct_AR
6509 fi
df7b86aa 6510else
f2c621e4
AS
6511 AR="$ac_cv_prog_AR"
6512fi
df7b86aa 6513
f2c621e4
AS
6514test -z "$AR" && AR=ar
6515test -z "$AR_FLAGS" && AR_FLAGS=cru
df7b86aa 6516
df7b86aa 6517
df7b86aa 6518
df7b86aa 6519
df7b86aa
NC
6520
6521
6522
6523
6524
6525
d7040cdb 6526
ce2cded5
L
6527if test -n "$ac_tool_prefix"; then
6528 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6529set dummy ${ac_tool_prefix}strip; ac_word=$2
81ecdfbb
RW
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6531$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6532if ${ac_cv_prog_STRIP+:} false; then :
81ecdfbb 6533 $as_echo_n "(cached) " >&6
ce2cded5
L
6534else
6535 if test -n "$STRIP"; then
6536 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6537else
6538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539for as_dir in $PATH
6540do
6541 IFS=$as_save_IFS
6542 test -z "$as_dir" && as_dir=.
81ecdfbb 6543 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 6545 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
81ecdfbb 6546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6547 break 2
6548 fi
6549done
81ecdfbb
RW
6550 done
6551IFS=$as_save_IFS
d7040cdb 6552
ce2cded5
L
6553fi
6554fi
6555STRIP=$ac_cv_prog_STRIP
6556if test -n "$STRIP"; then
81ecdfbb
RW
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6558$as_echo "$STRIP" >&6; }
ce2cded5 6559else
81ecdfbb
RW
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6561$as_echo "no" >&6; }
ce2cded5 6562fi
d7040cdb 6563
81ecdfbb 6564
ce2cded5
L
6565fi
6566if test -z "$ac_cv_prog_STRIP"; then
6567 ac_ct_STRIP=$STRIP
6568 # Extract the first word of "strip", so it can be a program name with args.
6569set dummy strip; ac_word=$2
81ecdfbb
RW
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6571$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6572if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
81ecdfbb 6573 $as_echo_n "(cached) " >&6
ce2cded5
L
6574else
6575 if test -n "$ac_ct_STRIP"; then
6576 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6577else
6578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6579for as_dir in $PATH
6580do
6581 IFS=$as_save_IFS
6582 test -z "$as_dir" && as_dir=.
81ecdfbb 6583 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 6585 ac_cv_prog_ac_ct_STRIP="strip"
81ecdfbb 6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6587 break 2
6588 fi
6589done
81ecdfbb
RW
6590 done
6591IFS=$as_save_IFS
d7040cdb 6592
ce2cded5
L
6593fi
6594fi
6595ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6596if test -n "$ac_ct_STRIP"; then
81ecdfbb
RW
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6598$as_echo "$ac_ct_STRIP" >&6; }
ce2cded5 6599else
81ecdfbb
RW
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6601$as_echo "no" >&6; }
ce2cded5 6602fi
d7040cdb 6603
81ecdfbb
RW
6604 if test "x$ac_ct_STRIP" = x; then
6605 STRIP=":"
6606 else
6607 case $cross_compiling:$ac_tool_warned in
6608yes:)
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6610$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6611ac_tool_warned=yes ;;
6612esac
6613 STRIP=$ac_ct_STRIP
6614 fi
ce2cded5
L
6615else
6616 STRIP="$ac_cv_prog_STRIP"
6617fi
d7040cdb 6618
ce2cded5 6619test -z "$STRIP" && STRIP=:
d7040cdb 6620
d7040cdb 6621
d7040cdb 6622
d7040cdb 6623
d7040cdb 6624
d7040cdb 6625
ce2cded5
L
6626if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6628set dummy ${ac_tool_prefix}ranlib; ac_word=$2
81ecdfbb
RW
6629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6631if ${ac_cv_prog_RANLIB+:} false; then :
81ecdfbb 6632 $as_echo_n "(cached) " >&6
44f2f9d2 6633else
ce2cded5
L
6634 if test -n "$RANLIB"; then
6635 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6636else
6637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
81ecdfbb 6642 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 6644 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
81ecdfbb 6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5
L
6646 break 2
6647 fi
6648done
81ecdfbb
RW
6649 done
6650IFS=$as_save_IFS
44f2f9d2 6651
d7040cdb 6652fi
44f2f9d2 6653fi
ce2cded5
L
6654RANLIB=$ac_cv_prog_RANLIB
6655if test -n "$RANLIB"; then
81ecdfbb
RW
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6657$as_echo "$RANLIB" >&6; }
ce2cded5 6658else
81ecdfbb
RW
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660$as_echo "no" >&6; }
ce2cded5 6661fi
d7040cdb 6662
81ecdfbb 6663
d7040cdb 6664fi
ce2cded5
L
6665if test -z "$ac_cv_prog_RANLIB"; then
6666 ac_ct_RANLIB=$RANLIB
6667 # Extract the first word of "ranlib", so it can be a program name with args.
6668set dummy ranlib; ac_word=$2
81ecdfbb
RW
6669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6671if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
81ecdfbb 6672 $as_echo_n "(cached) " >&6
44f2f9d2 6673else
ce2cded5
L
6674 if test -n "$ac_ct_RANLIB"; then
6675 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
d7040cdb 6679do
ce2cded5
L
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
81ecdfbb 6682 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
ce2cded5 6684 ac_cv_prog_ac_ct_RANLIB="ranlib"
81ecdfbb 6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
ce2cded5 6686 break 2
d7040cdb 6687 fi
ce2cded5 6688done
81ecdfbb
RW
6689 done
6690IFS=$as_save_IFS
ce2cded5 6691
d7040cdb 6692fi
ce2cded5
L
6693fi
6694ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6695if test -n "$ac_ct_RANLIB"; then
81ecdfbb
RW
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6697$as_echo "$ac_ct_RANLIB" >&6; }
d7040cdb 6698else
81ecdfbb
RW
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700$as_echo "no" >&6; }
44f2f9d2 6701fi
44f2f9d2 6702
81ecdfbb
RW
6703 if test "x$ac_ct_RANLIB" = x; then
6704 RANLIB=":"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707yes:)
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710ac_tool_warned=yes ;;
6711esac
6712 RANLIB=$ac_ct_RANLIB
6713 fi
d7040cdb 6714else
ce2cded5 6715 RANLIB="$ac_cv_prog_RANLIB"
d7040cdb 6716fi
252b5132 6717
ce2cded5 6718test -z "$RANLIB" && RANLIB=:
252b5132 6719
252b5132 6720
ae57792d 6721
252b5132 6722
13b2be9c 6723
14ee9f48 6724
ce2cded5 6725# Determine commands to create old-style static archives.
718a6fd8 6726old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
ce2cded5
L
6727old_postinstall_cmds='chmod 644 $oldlib'
6728old_postuninstall_cmds=
14ee9f48 6729
ce2cded5
L
6730if test -n "$RANLIB"; then
6731 case $host_os in
6732 openbsd*)
6733 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6734 ;;
6735 *)
6736 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6737 ;;
6738 esac
6739 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
d7040cdb 6740fi
14ee9f48 6741
3725885a
RW
6742case $host_os in
6743 darwin*)
6744 lock_old_archive_extraction=yes ;;
6745 *)
6746 lock_old_archive_extraction=no ;;
6747esac
6748
6749
6750
6751
6752
6753
f8fc3443 6754
f8fc3443 6755
252b5132 6756
85fbca6a 6757
85fbca6a 6758
13b2be9c 6759
13b2be9c 6760
d7040cdb 6761
d7040cdb
SE
6762
6763
6764
252b5132 6765
93fbbb04 6766
93fbbb04 6767
d70c5fc7 6768
e0001a05 6769
252b5132 6770
252b5132 6771
252b5132 6772
252b5132 6773
252b5132 6774
3bcbcc3d 6775
252b5132 6776
252b5132 6777
252b5132 6778
15886821 6779
252b5132 6780
252b5132 6781
13b2be9c
DJ
6782
6783
252b5132 6784
252b5132 6785
d6d788bd 6786
ce2cded5
L
6787# If no C compiler was specified, use CC.
6788LTCC=${LTCC-"$CC"}
252b5132 6789
ce2cded5
L
6790# If no C compiler flags were specified, use CFLAGS.
6791LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
252b5132 6792
ce2cded5
L
6793# Allow CC to be a program name with arguments.
6794compiler=$CC
252b5132 6795
252b5132 6796
ce2cded5 6797# Check for command to grab the raw symbol name followed by C symbol from nm.
81ecdfbb
RW
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6799$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 6800if ${lt_cv_sys_global_symbol_pipe+:} false; then :
81ecdfbb 6801 $as_echo_n "(cached) " >&6
ce2cded5 6802else
252b5132 6803
ce2cded5
L
6804# These are sane defaults that work on at least a few old systems.
6805# [They come from Ultrix. What could be older than Ultrix?!! ;)]
252b5132 6806
ce2cded5
L
6807# Character class describing NM global symbol codes.
6808symcode='[BCDEGRST]'
252b5132 6809
ce2cded5
L
6810# Regexp to match symbols that can be accessed directly from C.
6811sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13b2be9c 6812
ce2cded5
L
6813# Define system-specific variables.
6814case $host_os in
6815aix*)
6816 symcode='[BCDT]'
6817 ;;
718a6fd8 6818cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
6819 symcode='[ABCDGISTW]'
6820 ;;
6821hpux*)
6822 if test "$host_cpu" = ia64; then
6823 symcode='[ABCDEGRST]'
6824 fi
6825 ;;
6826irix* | nonstopux*)
6827 symcode='[BCDEGRST]'
6828 ;;
6829osf*)
6830 symcode='[BCDEGQRST]'
6831 ;;
6832solaris*)
6833 symcode='[BDRT]'
6834 ;;
6835sco3.2v5*)
6836 symcode='[DT]'
6837 ;;
6838sysv4.2uw2*)
6839 symcode='[DT]'
6840 ;;
6841sysv5* | sco5v6* | unixware* | OpenUNIX*)
6842 symcode='[ABDT]'
6843 ;;
6844sysv4)
6845 symcode='[DFNSTU]'
6846 ;;
6847esac
6848
6849# If we're using GNU nm, then use its standard symbol codes.
6850case `$NM -V 2>&1` in
6851*GNU* | *'with BFD'*)
6852 symcode='[ABCDGIRSTW]' ;;
6853esac
252b5132 6854
ce2cded5
L
6855# Transform an extracted symbol line into a proper C declaration.
6856# Some systems (esp. on ia64) link data and code symbols differently,
6857# so use this general approach.
6858lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13b2be9c 6859
ce2cded5 6860# Transform an extracted symbol line into symbol name and symbol address
f2c621e4
AS
6861lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6862lt_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 6863
7357c5b6
AM
6864# Handle CRLF in mingw tool chain
6865opt_cr=
6866case $build_os in
6867mingw*)
6868 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6869 ;;
6870esac
d7040cdb 6871
7357c5b6
AM
6872# Try without a prefix underscore, then with it.
6873for ac_symprfx in "" "_"; do
d7040cdb 6874
7357c5b6
AM
6875 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6876 symxfrm="\\1 $ac_symprfx\\2 \\2"
d7040cdb 6877
7357c5b6
AM
6878 # Write the raw and C identifiers.
6879 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6880 # Fake it for dumpbin and say T for any non-static function
6881 # and D for any global variable.
6882 # Also find C++ and __fastcall symbols from MSVC++,
6883 # which start with @ or ?.
6884 lt_cv_sys_global_symbol_pipe="$AWK '"\
6885" {last_section=section; section=\$ 3};"\
6886" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6887" \$ 0!~/External *\|/{next};"\
6888" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6889" {if(hide[section]) next};"\
6890" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6891" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6892" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6893" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6894" ' prfx=^$ac_symprfx"
6895 else
6896 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6897 fi
d7040cdb 6898
7357c5b6
AM
6899 # Check to see that the pipe works correctly.
6900 pipe_works=no
d7040cdb 6901
7357c5b6
AM
6902 rm -f conftest*
6903 cat > conftest.$ac_ext <<_LT_EOF
6904#ifdef __cplusplus
6905extern "C" {
6906#endif
6907char nm_test_var;
6908void nm_test_func(void);
6909void nm_test_func(void){}
6910#ifdef __cplusplus
ce2cded5 6911}
7357c5b6
AM
6912#endif
6913int main(){nm_test_var='a';nm_test_func();return(0);}
6914_LT_EOF
6915
81ecdfbb 6916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6 6917 (eval $ac_compile) 2>&5
ce2cded5 6918 ac_status=$?
81ecdfbb
RW
6919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6920 test $ac_status = 0; }; then
7357c5b6
AM
6921 # Now try to grab the symbols.
6922 nlist=conftest.nm
3725885a
RW
6923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6924 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
ce2cded5 6925 ac_status=$?
81ecdfbb
RW
6926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6927 test $ac_status = 0; } && test -s "$nlist"; then
7357c5b6
AM
6928 # Try sorting and uniquifying the output.
6929 if sort "$nlist" | uniq > "$nlist"T; then
6930 mv -f "$nlist"T "$nlist"
6931 else
6932 rm -f "$nlist"T
6933 fi
13b2be9c 6934
7357c5b6
AM
6935 # Make sure that we snagged all the symbols we need.
6936 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6937 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6938 cat <<_LT_EOF > conftest.$ac_ext
6939#ifdef __cplusplus
6940extern "C" {
6941#endif
13b2be9c 6942
7357c5b6
AM
6943_LT_EOF
6944 # Now generate the symbol file.
6945 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13b2be9c 6946
7357c5b6 6947 cat <<_LT_EOF >> conftest.$ac_ext
c8615825 6948
7357c5b6 6949/* The mapping between symbol names and symbols. */
f2c621e4 6950const struct {
7357c5b6
AM
6951 const char *name;
6952 void *address;
6953}
6954lt__PROGRAM__LTX_preloaded_symbols[] =
6955{
6956 { "@PROGRAM@", (void *) 0 },
6957_LT_EOF
6958 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6959 cat <<\_LT_EOF >> conftest.$ac_ext
6960 {0, (void *) 0}
6961};
d7040cdb 6962
7357c5b6
AM
6963/* This works around a problem in FreeBSD linker */
6964#ifdef FREEBSD_WORKAROUND
6965static const void *lt_preloaded_setup() {
6966 return lt__PROGRAM__LTX_preloaded_symbols;
6967}
ce2cded5 6968#endif
d7040cdb 6969
7357c5b6 6970#ifdef __cplusplus
ce2cded5 6971}
7357c5b6
AM
6972#endif
6973_LT_EOF
6974 # Now try linking the two files.
6975 mv conftest.$ac_objext conftstm.$ac_objext
f2c621e4
AS
6976 lt_save_LIBS="$LIBS"
6977 lt_save_CFLAGS="$CFLAGS"
7357c5b6
AM
6978 LIBS="conftstm.$ac_objext"
6979 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
81ecdfbb 6980 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
6981 (eval $ac_link) 2>&5
6982 ac_status=$?
81ecdfbb
RW
6983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6984 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7357c5b6
AM
6985 pipe_works=yes
6986 fi
f2c621e4
AS
6987 LIBS="$lt_save_LIBS"
6988 CFLAGS="$lt_save_CFLAGS"
7357c5b6
AM
6989 else
6990 echo "cannot find nm_test_func in $nlist" >&5
6991 fi
6992 else
6993 echo "cannot find nm_test_var in $nlist" >&5
6994 fi
6995 else
6996 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6997 fi
6998 else
6999 echo "$progname: failed program was:" >&5
7000 cat conftest.$ac_ext >&5
7001 fi
718a6fd8 7002 rm -rf conftest* conftst*
7357c5b6
AM
7003
7004 # Do not use the global_symbol_pipe unless it works.
7005 if test "$pipe_works" = yes; then
7006 break
7007 else
7008 lt_cv_sys_global_symbol_pipe=
7009 fi
7010done
d7040cdb 7011
ce2cded5 7012fi
7357c5b6
AM
7013
7014if test -z "$lt_cv_sys_global_symbol_pipe"; then
7015 lt_cv_sys_global_symbol_to_cdecl=
ce2cded5 7016fi
7357c5b6 7017if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
81ecdfbb
RW
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7019$as_echo "failed" >&6; }
7357c5b6 7020else
81ecdfbb
RW
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7022$as_echo "ok" >&6; }
ce2cded5 7023fi
d7040cdb 7024
df7b86aa
NC
7025
7026
7027
d7040cdb 7028
d7040cdb 7029
d7040cdb 7030
d7040cdb 7031
d7040cdb 7032
d7040cdb 7033
d7040cdb 7034
d7040cdb 7035
d7040cdb 7036
d7040cdb 7037
d7040cdb 7038
7357c5b6
AM
7039
7040
718a6fd8
SE
7041
7042
7043
7357c5b6
AM
7044
7045
81ecdfbb
RW
7046# Check whether --enable-libtool-lock was given.
7047if test "${enable_libtool_lock+set}" = set; then :
7048 enableval=$enable_libtool_lock;
7049fi
7357c5b6 7050
7357c5b6
AM
7051test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7052
7053# Some flags need to be propagated to the compiler or linker for good
7054# libtool support.
7055case $host in
7056ia64-*-hpux*)
7057 # Find out which ABI we are using.
7058 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7060 (eval $ac_compile) 2>&5
7061 ac_status=$?
81ecdfbb
RW
7062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7063 test $ac_status = 0; }; then
7357c5b6
AM
7064 case `/usr/bin/file conftest.$ac_objext` in
7065 *ELF-32*)
7066 HPUX_IA64_MODE="32"
7067 ;;
7068 *ELF-64*)
7069 HPUX_IA64_MODE="64"
7070 ;;
7071 esac
7072 fi
7073 rm -rf conftest*
7074 ;;
7075*-*-irix6*)
7076 # Find out which ABI we are using.
3725885a 7077 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
81ecdfbb 7078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7079 (eval $ac_compile) 2>&5
7080 ac_status=$?
81ecdfbb
RW
7081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7082 test $ac_status = 0; }; then
7357c5b6
AM
7083 if test "$lt_cv_prog_gnu_ld" = yes; then
7084 case `/usr/bin/file conftest.$ac_objext` in
7085 *32-bit*)
7086 LD="${LD-ld} -melf32bsmip"
7087 ;;
7088 *N32*)
7089 LD="${LD-ld} -melf32bmipn32"
7090 ;;
7091 *64-bit*)
7092 LD="${LD-ld} -melf64bmip"
7093 ;;
7094 esac
7095 else
7096 case `/usr/bin/file conftest.$ac_objext` in
7097 *32-bit*)
7098 LD="${LD-ld} -32"
7099 ;;
7100 *N32*)
7101 LD="${LD-ld} -n32"
7102 ;;
7103 *64-bit*)
7104 LD="${LD-ld} -64"
7105 ;;
7106 esac
7107 fi
7108 fi
7109 rm -rf conftest*
7110 ;;
7111
cc9afea3 7112x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7357c5b6
AM
7113s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7114 # Find out which ABI we are using.
7115 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7117 (eval $ac_compile) 2>&5
7118 ac_status=$?
81ecdfbb
RW
7119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7120 test $ac_status = 0; }; then
7357c5b6
AM
7121 case `/usr/bin/file conftest.o` in
7122 *32-bit*)
7123 case $host in
7124 x86_64-*kfreebsd*-gnu)
7125 LD="${LD-ld} -m elf_i386_fbsd"
7126 ;;
7127 x86_64-*linux*)
6d2920c8
L
7128 case `/usr/bin/file conftest.o` in
7129 *x86-64*)
7130 LD="${LD-ld} -m elf32_x86_64"
7131 ;;
7132 *)
7133 LD="${LD-ld} -m elf_i386"
7134 ;;
7135 esac
7357c5b6 7136 ;;
cc9afea3
AM
7137 powerpc64le-*linux*)
7138 LD="${LD-ld} -m elf32lppclinux"
7139 ;;
7140 powerpc64-*linux*)
7357c5b6
AM
7141 LD="${LD-ld} -m elf32ppclinux"
7142 ;;
7143 s390x-*linux*)
7144 LD="${LD-ld} -m elf_s390"
7145 ;;
7146 sparc64-*linux*)
7147 LD="${LD-ld} -m elf32_sparc"
7148 ;;
7149 esac
7150 ;;
7151 *64-bit*)
7152 case $host in
7153 x86_64-*kfreebsd*-gnu)
7154 LD="${LD-ld} -m elf_x86_64_fbsd"
7155 ;;
7156 x86_64-*linux*)
7157 LD="${LD-ld} -m elf_x86_64"
7158 ;;
cc9afea3
AM
7159 powerpcle-*linux*)
7160 LD="${LD-ld} -m elf64lppc"
7161 ;;
7162 powerpc-*linux*)
7357c5b6
AM
7163 LD="${LD-ld} -m elf64ppc"
7164 ;;
7165 s390*-*linux*|s390*-*tpf*)
7166 LD="${LD-ld} -m elf64_s390"
7167 ;;
7168 sparc*-*linux*)
7169 LD="${LD-ld} -m elf64_sparc"
7170 ;;
7171 esac
7172 ;;
7173 esac
7174 fi
7175 rm -rf conftest*
7176 ;;
7177
7178*-*-sco3.2v5*)
7179 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7180 SAVE_CFLAGS="$CFLAGS"
7181 CFLAGS="$CFLAGS -belf"
81ecdfbb
RW
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7183$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 7184if ${lt_cv_cc_needs_belf+:} false; then :
81ecdfbb 7185 $as_echo_n "(cached) " >&6
ce2cded5 7186else
7357c5b6
AM
7187 ac_ext=c
7188ac_cpp='$CPP $CPPFLAGS'
7189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7191ac_compiler_gnu=$ac_cv_c_compiler_gnu
7192
81ecdfbb 7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 7194/* end confdefs.h. */
d7040cdb 7195
7357c5b6
AM
7196int
7197main ()
7198{
7199
7200 ;
7201 return 0;
7202}
ce2cded5 7203_ACEOF
81ecdfbb 7204if ac_fn_c_try_link "$LINENO"; then :
7357c5b6 7205 lt_cv_cc_needs_belf=yes
ce2cded5 7206else
81ecdfbb 7207 lt_cv_cc_needs_belf=no
ce2cded5 7208fi
81ecdfbb
RW
7209rm -f core conftest.err conftest.$ac_objext \
7210 conftest$ac_exeext conftest.$ac_ext
7357c5b6
AM
7211 ac_ext=c
7212ac_cpp='$CPP $CPPFLAGS'
7213ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7214ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7215ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 7216
ce2cded5 7217fi
81ecdfbb
RW
7218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7219$as_echo "$lt_cv_cc_needs_belf" >&6; }
7357c5b6
AM
7220 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7221 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7222 CFLAGS="$SAVE_CFLAGS"
7223 fi
7224 ;;
7225sparc*-*solaris*)
7226 # Find out which ABI we are using.
7227 echo 'int i;' > conftest.$ac_ext
81ecdfbb 7228 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7357c5b6
AM
7229 (eval $ac_compile) 2>&5
7230 ac_status=$?
81ecdfbb
RW
7231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7232 test $ac_status = 0; }; then
7357c5b6
AM
7233 case `/usr/bin/file conftest.o` in
7234 *64-bit*)
7235 case $lt_cv_prog_gnu_ld in
7236 yes*) LD="${LD-ld} -m elf64_sparc" ;;
718a6fd8
SE
7237 *)
7238 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7239 LD="${LD-ld} -64"
7240 fi
7241 ;;
7357c5b6
AM
7242 esac
7243 ;;
7244 esac
7245 fi
7246 rm -rf conftest*
7247 ;;
7248esac
d7040cdb 7249
df7b86aa
NC
7250need_locks="$enable_libtool_lock"
7251
718a6fd8
SE
7252
7253 case $host_os in
7254 rhapsody* | darwin*)
7255 if test -n "$ac_tool_prefix"; then
7256 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7257set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
81ecdfbb
RW
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7260if ${ac_cv_prog_DSYMUTIL+:} false; then :
81ecdfbb 7261 $as_echo_n "(cached) " >&6
718a6fd8
SE
7262else
7263 if test -n "$DSYMUTIL"; then
7264 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269 IFS=$as_save_IFS
7270 test -z "$as_dir" && as_dir=.
81ecdfbb 7271 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7273 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
81ecdfbb 7274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7275 break 2
7276 fi
7277done
81ecdfbb
RW
7278 done
7279IFS=$as_save_IFS
718a6fd8
SE
7280
7281fi
7282fi
7283DSYMUTIL=$ac_cv_prog_DSYMUTIL
7284if test -n "$DSYMUTIL"; then
81ecdfbb
RW
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7286$as_echo "$DSYMUTIL" >&6; }
718a6fd8 7287else
81ecdfbb
RW
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289$as_echo "no" >&6; }
718a6fd8
SE
7290fi
7291
81ecdfbb 7292
718a6fd8
SE
7293fi
7294if test -z "$ac_cv_prog_DSYMUTIL"; then
7295 ac_ct_DSYMUTIL=$DSYMUTIL
7296 # Extract the first word of "dsymutil", so it can be a program name with args.
7297set dummy dsymutil; ac_word=$2
81ecdfbb
RW
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7300if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
81ecdfbb 7301 $as_echo_n "(cached) " >&6
718a6fd8
SE
7302else
7303 if test -n "$ac_ct_DSYMUTIL"; then
7304 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7305else
7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309 IFS=$as_save_IFS
7310 test -z "$as_dir" && as_dir=.
81ecdfbb 7311 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7313 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
81ecdfbb 7314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7315 break 2
7316 fi
7317done
81ecdfbb
RW
7318 done
7319IFS=$as_save_IFS
718a6fd8 7320
718a6fd8
SE
7321fi
7322fi
7323ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7324if test -n "$ac_ct_DSYMUTIL"; then
81ecdfbb
RW
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7326$as_echo "$ac_ct_DSYMUTIL" >&6; }
718a6fd8 7327else
81ecdfbb
RW
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329$as_echo "no" >&6; }
718a6fd8
SE
7330fi
7331
81ecdfbb
RW
7332 if test "x$ac_ct_DSYMUTIL" = x; then
7333 DSYMUTIL=":"
7334 else
7335 case $cross_compiling:$ac_tool_warned in
7336yes:)
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339ac_tool_warned=yes ;;
7340esac
7341 DSYMUTIL=$ac_ct_DSYMUTIL
7342 fi
718a6fd8
SE
7343else
7344 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7345fi
7346
7347 if test -n "$ac_tool_prefix"; then
7348 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7349set dummy ${ac_tool_prefix}nmedit; ac_word=$2
81ecdfbb
RW
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7352if ${ac_cv_prog_NMEDIT+:} false; then :
81ecdfbb 7353 $as_echo_n "(cached) " >&6
718a6fd8
SE
7354else
7355 if test -n "$NMEDIT"; then
7356 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7357else
7358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359for as_dir in $PATH
7360do
7361 IFS=$as_save_IFS
7362 test -z "$as_dir" && as_dir=.
81ecdfbb 7363 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7365 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
81ecdfbb 7366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7367 break 2
7368 fi
7369done
81ecdfbb
RW
7370 done
7371IFS=$as_save_IFS
718a6fd8
SE
7372
7373fi
7374fi
7375NMEDIT=$ac_cv_prog_NMEDIT
7376if test -n "$NMEDIT"; then
81ecdfbb
RW
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7378$as_echo "$NMEDIT" >&6; }
718a6fd8 7379else
81ecdfbb
RW
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381$as_echo "no" >&6; }
718a6fd8
SE
7382fi
7383
81ecdfbb 7384
718a6fd8
SE
7385fi
7386if test -z "$ac_cv_prog_NMEDIT"; then
7387 ac_ct_NMEDIT=$NMEDIT
7388 # Extract the first word of "nmedit", so it can be a program name with args.
7389set dummy nmedit; ac_word=$2
81ecdfbb
RW
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7391$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7392if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
81ecdfbb 7393 $as_echo_n "(cached) " >&6
718a6fd8
SE
7394else
7395 if test -n "$ac_ct_NMEDIT"; then
7396 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7397else
7398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399for as_dir in $PATH
7400do
7401 IFS=$as_save_IFS
7402 test -z "$as_dir" && as_dir=.
81ecdfbb 7403 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7405 ac_cv_prog_ac_ct_NMEDIT="nmedit"
81ecdfbb 7406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7407 break 2
7408 fi
7409done
81ecdfbb
RW
7410 done
7411IFS=$as_save_IFS
718a6fd8 7412
718a6fd8
SE
7413fi
7414fi
7415ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7416if test -n "$ac_ct_NMEDIT"; then
81ecdfbb
RW
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7418$as_echo "$ac_ct_NMEDIT" >&6; }
718a6fd8 7419else
81ecdfbb
RW
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7421$as_echo "no" >&6; }
718a6fd8
SE
7422fi
7423
81ecdfbb
RW
7424 if test "x$ac_ct_NMEDIT" = x; then
7425 NMEDIT=":"
7426 else
7427 case $cross_compiling:$ac_tool_warned in
7428yes:)
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7431ac_tool_warned=yes ;;
7432esac
7433 NMEDIT=$ac_ct_NMEDIT
7434 fi
718a6fd8
SE
7435else
7436 NMEDIT="$ac_cv_prog_NMEDIT"
7437fi
7438
7439 if test -n "$ac_tool_prefix"; then
7440 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7441set dummy ${ac_tool_prefix}lipo; ac_word=$2
81ecdfbb
RW
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7444if ${ac_cv_prog_LIPO+:} false; then :
81ecdfbb 7445 $as_echo_n "(cached) " >&6
718a6fd8
SE
7446else
7447 if test -n "$LIPO"; then
7448 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7449else
7450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453 IFS=$as_save_IFS
7454 test -z "$as_dir" && as_dir=.
81ecdfbb 7455 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7457 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
81ecdfbb 7458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7459 break 2
7460 fi
7461done
81ecdfbb
RW
7462 done
7463IFS=$as_save_IFS
718a6fd8
SE
7464
7465fi
7466fi
7467LIPO=$ac_cv_prog_LIPO
7468if test -n "$LIPO"; then
81ecdfbb
RW
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7470$as_echo "$LIPO" >&6; }
718a6fd8 7471else
81ecdfbb
RW
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473$as_echo "no" >&6; }
718a6fd8
SE
7474fi
7475
81ecdfbb 7476
718a6fd8
SE
7477fi
7478if test -z "$ac_cv_prog_LIPO"; then
7479 ac_ct_LIPO=$LIPO
7480 # Extract the first word of "lipo", so it can be a program name with args.
7481set dummy lipo; ac_word=$2
81ecdfbb
RW
7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7483$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7484if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
81ecdfbb 7485 $as_echo_n "(cached) " >&6
718a6fd8
SE
7486else
7487 if test -n "$ac_ct_LIPO"; then
7488 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7489else
7490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491for as_dir in $PATH
7492do
7493 IFS=$as_save_IFS
7494 test -z "$as_dir" && as_dir=.
81ecdfbb 7495 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7497 ac_cv_prog_ac_ct_LIPO="lipo"
81ecdfbb 7498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7499 break 2
7500 fi
7501done
81ecdfbb
RW
7502 done
7503IFS=$as_save_IFS
718a6fd8 7504
718a6fd8
SE
7505fi
7506fi
7507ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7508if test -n "$ac_ct_LIPO"; then
81ecdfbb
RW
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7510$as_echo "$ac_ct_LIPO" >&6; }
718a6fd8 7511else
81ecdfbb
RW
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7513$as_echo "no" >&6; }
718a6fd8
SE
7514fi
7515
81ecdfbb
RW
7516 if test "x$ac_ct_LIPO" = x; then
7517 LIPO=":"
7518 else
7519 case $cross_compiling:$ac_tool_warned in
7520yes:)
7521{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7523ac_tool_warned=yes ;;
7524esac
7525 LIPO=$ac_ct_LIPO
7526 fi
718a6fd8
SE
7527else
7528 LIPO="$ac_cv_prog_LIPO"
7529fi
7530
7531 if test -n "$ac_tool_prefix"; then
7532 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7533set dummy ${ac_tool_prefix}otool; ac_word=$2
81ecdfbb
RW
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7536if ${ac_cv_prog_OTOOL+:} false; then :
81ecdfbb 7537 $as_echo_n "(cached) " >&6
718a6fd8
SE
7538else
7539 if test -n "$OTOOL"; then
7540 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7541else
7542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545 IFS=$as_save_IFS
7546 test -z "$as_dir" && as_dir=.
81ecdfbb 7547 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7549 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
81ecdfbb 7550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7551 break 2
7552 fi
7553done
81ecdfbb
RW
7554 done
7555IFS=$as_save_IFS
718a6fd8
SE
7556
7557fi
7558fi
7559OTOOL=$ac_cv_prog_OTOOL
7560if test -n "$OTOOL"; then
81ecdfbb
RW
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7562$as_echo "$OTOOL" >&6; }
718a6fd8 7563else
81ecdfbb
RW
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565$as_echo "no" >&6; }
718a6fd8
SE
7566fi
7567
81ecdfbb 7568
718a6fd8
SE
7569fi
7570if test -z "$ac_cv_prog_OTOOL"; then
7571 ac_ct_OTOOL=$OTOOL
7572 # Extract the first word of "otool", so it can be a program name with args.
7573set dummy otool; ac_word=$2
81ecdfbb
RW
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7575$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7576if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
81ecdfbb 7577 $as_echo_n "(cached) " >&6
718a6fd8
SE
7578else
7579 if test -n "$ac_ct_OTOOL"; then
7580 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7581else
7582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7583for as_dir in $PATH
7584do
7585 IFS=$as_save_IFS
7586 test -z "$as_dir" && as_dir=.
81ecdfbb 7587 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7589 ac_cv_prog_ac_ct_OTOOL="otool"
81ecdfbb 7590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7591 break 2
7592 fi
7593done
81ecdfbb
RW
7594 done
7595IFS=$as_save_IFS
718a6fd8 7596
718a6fd8
SE
7597fi
7598fi
7599ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7600if test -n "$ac_ct_OTOOL"; then
81ecdfbb
RW
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7602$as_echo "$ac_ct_OTOOL" >&6; }
718a6fd8 7603else
81ecdfbb
RW
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7605$as_echo "no" >&6; }
718a6fd8
SE
7606fi
7607
81ecdfbb
RW
7608 if test "x$ac_ct_OTOOL" = x; then
7609 OTOOL=":"
7610 else
7611 case $cross_compiling:$ac_tool_warned in
7612yes:)
7613{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7614$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7615ac_tool_warned=yes ;;
7616esac
7617 OTOOL=$ac_ct_OTOOL
7618 fi
718a6fd8
SE
7619else
7620 OTOOL="$ac_cv_prog_OTOOL"
7621fi
7622
7623 if test -n "$ac_tool_prefix"; then
7624 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7625set dummy ${ac_tool_prefix}otool64; ac_word=$2
81ecdfbb
RW
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7628if ${ac_cv_prog_OTOOL64+:} false; then :
81ecdfbb 7629 $as_echo_n "(cached) " >&6
718a6fd8
SE
7630else
7631 if test -n "$OTOOL64"; then
7632 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7633else
7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH
7636do
7637 IFS=$as_save_IFS
7638 test -z "$as_dir" && as_dir=.
81ecdfbb 7639 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7641 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
81ecdfbb 7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7643 break 2
7644 fi
7645done
81ecdfbb
RW
7646 done
7647IFS=$as_save_IFS
718a6fd8
SE
7648
7649fi
7650fi
7651OTOOL64=$ac_cv_prog_OTOOL64
7652if test -n "$OTOOL64"; then
81ecdfbb
RW
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7654$as_echo "$OTOOL64" >&6; }
718a6fd8 7655else
81ecdfbb
RW
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657$as_echo "no" >&6; }
718a6fd8
SE
7658fi
7659
81ecdfbb 7660
718a6fd8
SE
7661fi
7662if test -z "$ac_cv_prog_OTOOL64"; then
7663 ac_ct_OTOOL64=$OTOOL64
7664 # Extract the first word of "otool64", so it can be a program name with args.
7665set dummy otool64; ac_word=$2
81ecdfbb
RW
7666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7667$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 7668if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
81ecdfbb 7669 $as_echo_n "(cached) " >&6
718a6fd8
SE
7670else
7671 if test -n "$ac_ct_OTOOL64"; then
7672 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7673else
7674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675for as_dir in $PATH
7676do
7677 IFS=$as_save_IFS
7678 test -z "$as_dir" && as_dir=.
81ecdfbb 7679 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 7680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
718a6fd8 7681 ac_cv_prog_ac_ct_OTOOL64="otool64"
81ecdfbb 7682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
718a6fd8
SE
7683 break 2
7684 fi
7685done
81ecdfbb
RW
7686 done
7687IFS=$as_save_IFS
718a6fd8 7688
718a6fd8
SE
7689fi
7690fi
7691ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7692if test -n "$ac_ct_OTOOL64"; then
81ecdfbb
RW
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7694$as_echo "$ac_ct_OTOOL64" >&6; }
718a6fd8 7695else
81ecdfbb
RW
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7697$as_echo "no" >&6; }
718a6fd8
SE
7698fi
7699
81ecdfbb
RW
7700 if test "x$ac_ct_OTOOL64" = x; then
7701 OTOOL64=":"
7702 else
7703 case $cross_compiling:$ac_tool_warned in
7704yes:)
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7707ac_tool_warned=yes ;;
7708esac
7709 OTOOL64=$ac_ct_OTOOL64
7710 fi
718a6fd8
SE
7711else
7712 OTOOL64="$ac_cv_prog_OTOOL64"
7713fi
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
81ecdfbb
RW
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7742$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 7743if ${lt_cv_apple_cc_single_mod+:} false; then :
81ecdfbb 7744 $as_echo_n "(cached) " >&6
718a6fd8
SE
7745else
7746 lt_cv_apple_cc_single_mod=no
7747 if test -z "${LT_MULTI_MODULE}"; then
7748 # By default we will add the -single_module flag. You can override
7749 # by either setting the environment variable LT_MULTI_MODULE
7750 # non-empty at configure time, or by adding -multi_module to the
7751 # link flags.
7752 rm -rf libconftest.dylib*
7753 echo "int foo(void){return 1;}" > conftest.c
7754 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7755-dynamiclib -Wl,-single_module conftest.c" >&5
7756 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7757 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7758 _lt_result=$?
7759 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7760 lt_cv_apple_cc_single_mod=yes
7761 else
7762 cat conftest.err >&5
7763 fi
7764 rm -rf libconftest.dylib*
7765 rm -f conftest.*
7766 fi
7767fi
81ecdfbb
RW
7768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7769$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7771$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 7772if ${lt_cv_ld_exported_symbols_list+:} false; then :
81ecdfbb 7773 $as_echo_n "(cached) " >&6
718a6fd8
SE
7774else
7775 lt_cv_ld_exported_symbols_list=no
7776 save_LDFLAGS=$LDFLAGS
7777 echo "_main" > conftest.sym
7778 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
81ecdfbb 7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
718a6fd8
SE
7780/* end confdefs.h. */
7781
7782int
7783main ()
7784{
7785
7786 ;
7787 return 0;
7788}
7789_ACEOF
81ecdfbb 7790if ac_fn_c_try_link "$LINENO"; then :
718a6fd8
SE
7791 lt_cv_ld_exported_symbols_list=yes
7792else
81ecdfbb 7793 lt_cv_ld_exported_symbols_list=no
718a6fd8 7794fi
81ecdfbb
RW
7795rm -f core conftest.err conftest.$ac_objext \
7796 conftest$ac_exeext conftest.$ac_ext
718a6fd8
SE
7797 LDFLAGS="$save_LDFLAGS"
7798
7799fi
81ecdfbb
RW
7800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7801$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
3725885a
RW
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7803$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 7804if ${lt_cv_ld_force_load+:} false; then :
3725885a
RW
7805 $as_echo_n "(cached) " >&6
7806else
7807 lt_cv_ld_force_load=no
7808 cat > conftest.c << _LT_EOF
7809int forced_loaded() { return 2;}
7810_LT_EOF
7811 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7812 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7813 echo "$AR cru libconftest.a conftest.o" >&5
7814 $AR cru libconftest.a conftest.o 2>&5
7815 cat > conftest.c << _LT_EOF
7816int main() { return 0;}
7817_LT_EOF
7818 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7819 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7820 _lt_result=$?
7821 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7822 lt_cv_ld_force_load=yes
7823 else
7824 cat conftest.err >&5
7825 fi
7826 rm -f conftest.err libconftest.a conftest conftest.c
7827 rm -rf conftest.dSYM
7828
7829fi
7830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7831$as_echo "$lt_cv_ld_force_load" >&6; }
718a6fd8
SE
7832 case $host_os in
7833 rhapsody* | darwin1.[012])
7834 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7835 darwin1.*)
7836 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7837 darwin*) # darwin 5.x on
7838 # if running on 10.5 or later, the deployment target defaults
7839 # to the OS version, if on x86, and 10.4, the deployment
7840 # target defaults to 10.4. Don't you love it?
7841 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7842 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7843 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6e733cce 7844 10.[012][,.]*)
718a6fd8
SE
7845 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7846 10.*)
7847 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7848 esac
7849 ;;
7850 esac
7851 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7852 _lt_dar_single_mod='$single_module'
7853 fi
7854 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7855 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7856 else
7857 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7858 fi
3725885a 7859 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
718a6fd8
SE
7860 _lt_dsymutil='~$DSYMUTIL $lib || :'
7861 else
7862 _lt_dsymutil=
7863 fi
7864 ;;
7865 esac
7866
718a6fd8 7867for ac_header in dlfcn.h
81ecdfbb
RW
7868do :
7869 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7870"
d0ac1c44 7871if test "x$ac_cv_header_dlfcn_h" = xyes; then :
718a6fd8 7872 cat >>confdefs.h <<_ACEOF
81ecdfbb 7873#define HAVE_DLFCN_H 1
718a6fd8
SE
7874_ACEOF
7875
7876fi
7877
7878done
7879
7880
7881
3725885a
RW
7882
7883
718a6fd8
SE
7884# Set options
7885
7886
7887
7888 enable_dlopen=no
7889
7890
7891 enable_win32_dll=no
7892
7893
81ecdfbb
RW
7894 # Check whether --enable-shared was given.
7895if test "${enable_shared+set}" = set; then :
7896 enableval=$enable_shared; p=${PACKAGE-default}
718a6fd8
SE
7897 case $enableval in
7898 yes) enable_shared=yes ;;
7899 no) enable_shared=no ;;
7900 *)
7901 enable_shared=no
7902 # Look at the argument we got. We use all the common list separators.
7903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7904 for pkg in $enableval; do
7905 IFS="$lt_save_ifs"
7906 if test "X$pkg" = "X$p"; then
7907 enable_shared=yes
7908 fi
7909 done
7910 IFS="$lt_save_ifs"
7911 ;;
7912 esac
7913else
7914 enable_shared=yes
81ecdfbb
RW
7915fi
7916
718a6fd8
SE
7917
7918
7919
7920
7921
7922
7923
7924
81ecdfbb
RW
7925 # Check whether --enable-static was given.
7926if test "${enable_static+set}" = set; then :
7927 enableval=$enable_static; p=${PACKAGE-default}
718a6fd8
SE
7928 case $enableval in
7929 yes) enable_static=yes ;;
7930 no) enable_static=no ;;
7931 *)
7932 enable_static=no
7933 # Look at the argument we got. We use all the common list separators.
7934 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7935 for pkg in $enableval; do
7936 IFS="$lt_save_ifs"
7937 if test "X$pkg" = "X$p"; then
7938 enable_static=yes
7939 fi
7940 done
7941 IFS="$lt_save_ifs"
7942 ;;
7943 esac
7944else
7945 enable_static=yes
81ecdfbb
RW
7946fi
7947
718a6fd8
SE
7948
7949
d7040cdb 7950
d7040cdb 7951
718a6fd8
SE
7952
7953
7954
7955
7956
81ecdfbb
RW
7957# Check whether --with-pic was given.
7958if test "${with_pic+set}" = set; then :
7959 withval=$with_pic; pic_mode="$withval"
ce2cded5 7960else
718a6fd8 7961 pic_mode=default
81ecdfbb
RW
7962fi
7963
d7040cdb 7964
718a6fd8
SE
7965test -z "$pic_mode" && pic_mode=default
7966
7967
7968
7969
7970
7971
7972
81ecdfbb
RW
7973 # Check whether --enable-fast-install was given.
7974if test "${enable_fast_install+set}" = set; then :
7975 enableval=$enable_fast_install; p=${PACKAGE-default}
718a6fd8
SE
7976 case $enableval in
7977 yes) enable_fast_install=yes ;;
7978 no) enable_fast_install=no ;;
7979 *)
7980 enable_fast_install=no
7981 # Look at the argument we got. We use all the common list separators.
7982 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7983 for pkg in $enableval; do
7984 IFS="$lt_save_ifs"
7985 if test "X$pkg" = "X$p"; then
7986 enable_fast_install=yes
7987 fi
7988 done
7989 IFS="$lt_save_ifs"
7990 ;;
7991 esac
ce2cded5 7992else
718a6fd8 7993 enable_fast_install=yes
81ecdfbb
RW
7994fi
7995
718a6fd8
SE
7996
7997
7998
7999
d7040cdb 8000
d7040cdb 8001
d7040cdb 8002
d7040cdb 8003
d7040cdb 8004
d7040cdb 8005
ce2cded5
L
8006# This can be used to rebuild libtool when needed
8007LIBTOOL_DEPS="$ltmain"
d7040cdb 8008
ce2cded5
L
8009# Always use our own libtool.
8010LIBTOOL='$(SHELL) $(top_builddir)/libtool'
d7040cdb 8011
d7040cdb 8012
d7040cdb 8013
d7040cdb
SE
8014
8015
8016
8017
8018
8019
d7040cdb 8020
d7040cdb 8021
ab509236 8022
ab509236 8023
d7040cdb
SE
8024
8025
8026
8027
8028
13b2be9c 8029
13b2be9c 8030
13b2be9c 8031
13b2be9c 8032
d7040cdb 8033
3725885a 8034
d7040cdb
SE
8035
8036
ce2cded5 8037test -z "$LN_S" && LN_S="ln -s"
d7040cdb
SE
8038
8039
d7040cdb 8040
d7040cdb 8041
d7040cdb
SE
8042
8043
8044
8045
8046
8047
ce2cded5
L
8048
8049
8050
8051
8052if test -n "${ZSH_VERSION+set}" ; then
8053 setopt NO_GLOB_SUBST
8054fi
8055
81ecdfbb
RW
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8057$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 8058if ${lt_cv_objdir+:} false; then :
81ecdfbb 8059 $as_echo_n "(cached) " >&6
d7040cdb 8060else
ce2cded5
L
8061 rm -f .libs 2>/dev/null
8062mkdir .libs 2>/dev/null
8063if test -d .libs; then
8064 lt_cv_objdir=.libs
8065else
8066 # MS-DOS does not allow filenames that begin with a dot.
8067 lt_cv_objdir=_libs
d7040cdb 8068fi
ce2cded5
L
8069rmdir .libs 2>/dev/null
8070fi
81ecdfbb
RW
8071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8072$as_echo "$lt_cv_objdir" >&6; }
ce2cded5 8073objdir=$lt_cv_objdir
d7040cdb
SE
8074
8075
8076
8077
d7040cdb 8078
ce2cded5
L
8079cat >>confdefs.h <<_ACEOF
8080#define LT_OBJDIR "$lt_cv_objdir/"
8081_ACEOF
d7040cdb
SE
8082
8083
8084
8085
ce2cded5
L
8086case $host_os in
8087aix3*)
8088 # AIX sometimes has problems with the GCC collect2 program. For some
8089 # reason, if we set the COLLECT_NAMES environment variable, the problems
8090 # vanish in a puff of smoke.
8091 if test "X${COLLECT_NAMES+set}" != Xset; then
8092 COLLECT_NAMES=
8093 export COLLECT_NAMES
8094 fi
8095 ;;
8096esac
d7040cdb 8097
ce2cded5
L
8098# Global variables:
8099ofile=libtool
8100can_build_shared=yes
d7040cdb 8101
ce2cded5
L
8102# All known linkers require a `.a' archive for static linking (except MSVC,
8103# which needs '.lib').
8104libext=a
d7040cdb 8105
ce2cded5 8106with_gnu_ld="$lt_cv_prog_gnu_ld"
d7040cdb 8107
ce2cded5
L
8108old_CC="$CC"
8109old_CFLAGS="$CFLAGS"
d7040cdb 8110
ce2cded5
L
8111# Set sane defaults for various variables
8112test -z "$CC" && CC=cc
8113test -z "$LTCC" && LTCC=$CC
8114test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8115test -z "$LD" && LD=ld
8116test -z "$ac_objext" && ac_objext=o
8117
8118for cc_temp in $compiler""; do
8119 case $cc_temp in
8120 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8121 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8122 \-*) ;;
8123 *) break;;
8124 esac
8125done
3725885a 8126cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
ce2cded5
L
8127
8128
8129# Only perform the check for file, if the check method requires it
8130test -z "$MAGIC_CMD" && MAGIC_CMD=file
8131case $deplibs_check_method in
8132file_magic*)
8133 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
81ecdfbb
RW
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8135$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 8136if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8137 $as_echo_n "(cached) " >&6
ce2cded5
L
8138else
8139 case $MAGIC_CMD in
8140[\\/*] | ?:[\\/]*)
8141 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8142 ;;
8143*)
8144 lt_save_MAGIC_CMD="$MAGIC_CMD"
8145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8146 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8147 for ac_dir in $ac_dummy; do
8148 IFS="$lt_save_ifs"
8149 test -z "$ac_dir" && ac_dir=.
8150 if test -f $ac_dir/${ac_tool_prefix}file; then
8151 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8152 if test -n "$file_magic_test_file"; then
8153 case $deplibs_check_method in
8154 "file_magic "*)
8155 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8156 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8157 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8158 $EGREP "$file_magic_regex" > /dev/null; then
8159 :
d7040cdb 8160 else
ce2cded5 8161 cat <<_LT_EOF 1>&2
d7040cdb 8162
ce2cded5
L
8163*** Warning: the command libtool uses to detect shared libraries,
8164*** $file_magic_cmd, produces output that libtool cannot recognize.
8165*** The result is that libtool may fail to recognize shared libraries
8166*** as such. This will affect the creation of libtool libraries that
8167*** depend on shared libraries, but programs linked with such libtool
8168*** libraries will work regardless of this problem. Nevertheless, you
8169*** may want to report the problem to your system manager and/or to
8170*** bug-libtool@gnu.org
d7040cdb 8171
ce2cded5
L
8172_LT_EOF
8173 fi ;;
8174 esac
d7040cdb 8175 fi
ce2cded5 8176 break
d7040cdb 8177 fi
ce2cded5
L
8178 done
8179 IFS="$lt_save_ifs"
8180 MAGIC_CMD="$lt_save_MAGIC_CMD"
8181 ;;
8182esac
8183fi
d7040cdb 8184
ce2cded5
L
8185MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8186if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8188$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8189else
81ecdfbb
RW
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191$as_echo "no" >&6; }
ce2cded5 8192fi
d7040cdb 8193
d7040cdb 8194
d7040cdb 8195
d7040cdb 8196
d7040cdb 8197
ce2cded5
L
8198if test -z "$lt_cv_path_MAGIC_CMD"; then
8199 if test -n "$ac_tool_prefix"; then
81ecdfbb
RW
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8201$as_echo_n "checking for file... " >&6; }
d0ac1c44 8202if ${lt_cv_path_MAGIC_CMD+:} false; then :
81ecdfbb 8203 $as_echo_n "(cached) " >&6
ce2cded5
L
8204else
8205 case $MAGIC_CMD in
8206[\\/*] | ?:[\\/]*)
8207 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8208 ;;
8209*)
8210 lt_save_MAGIC_CMD="$MAGIC_CMD"
8211 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8212 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8213 for ac_dir in $ac_dummy; do
8214 IFS="$lt_save_ifs"
8215 test -z "$ac_dir" && ac_dir=.
8216 if test -f $ac_dir/file; then
8217 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8218 if test -n "$file_magic_test_file"; then
8219 case $deplibs_check_method in
8220 "file_magic "*)
8221 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8223 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8224 $EGREP "$file_magic_regex" > /dev/null; then
8225 :
d7040cdb 8226 else
ce2cded5
L
8227 cat <<_LT_EOF 1>&2
8228
8229*** Warning: the command libtool uses to detect shared libraries,
8230*** $file_magic_cmd, produces output that libtool cannot recognize.
8231*** The result is that libtool may fail to recognize shared libraries
8232*** as such. This will affect the creation of libtool libraries that
8233*** depend on shared libraries, but programs linked with such libtool
8234*** libraries will work regardless of this problem. Nevertheless, you
8235*** may want to report the problem to your system manager and/or to
8236*** bug-libtool@gnu.org
8237
8238_LT_EOF
8239 fi ;;
d7040cdb 8240 esac
d7040cdb 8241 fi
ce2cded5
L
8242 break
8243 fi
8244 done
8245 IFS="$lt_save_ifs"
8246 MAGIC_CMD="$lt_save_MAGIC_CMD"
8247 ;;
8248esac
8249fi
d7040cdb 8250
ce2cded5
L
8251MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8252if test -n "$MAGIC_CMD"; then
81ecdfbb
RW
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8254$as_echo "$MAGIC_CMD" >&6; }
ce2cded5 8255else
81ecdfbb
RW
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257$as_echo "no" >&6; }
ce2cded5 8258fi
d7040cdb 8259
d7040cdb 8260
ce2cded5
L
8261 else
8262 MAGIC_CMD=:
8263 fi
d7040cdb 8264fi
d7040cdb 8265
ce2cded5
L
8266 fi
8267 ;;
8268esac
d7040cdb 8269
ce2cded5 8270# Use C for the default configuration in the libtool script
d7040cdb 8271
ce2cded5
L
8272lt_save_CC="$CC"
8273ac_ext=c
8274ac_cpp='$CPP $CPPFLAGS'
8275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8277ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 8278
d7040cdb 8279
ce2cded5
L
8280# Source file extension for C test sources.
8281ac_ext=c
d7040cdb 8282
ce2cded5
L
8283# Object file extension for compiled C test sources.
8284objext=o
8285objext=$objext
d7040cdb 8286
ce2cded5
L
8287# Code to be used in simple compile tests
8288lt_simple_compile_test_code="int some_variable = 0;"
8289
8290# Code to be used in simple link tests
8291lt_simple_link_test_code='int main(){return(0);}'
8292
8293
8294
8295
8296
8297
8298
8299# If no C compiler was specified, use CC.
8300LTCC=${LTCC-"$CC"}
8301
8302# If no C compiler flags were specified, use CFLAGS.
8303LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8304
8305# Allow CC to be a program name with arguments.
8306compiler=$CC
8307
8308# Save the default compiler, since it gets overwritten when the other
8309# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8310compiler_DEFAULT=$CC
8311
8312# save warnings/boilerplate of simple test code
8313ac_outfile=conftest.$ac_objext
8314echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8315eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8316_lt_compiler_boilerplate=`cat conftest.err`
8317$RM conftest*
8318
8319ac_outfile=conftest.$ac_objext
8320echo "$lt_simple_link_test_code" >conftest.$ac_ext
8321eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8322_lt_linker_boilerplate=`cat conftest.err`
718a6fd8 8323$RM -r conftest*
ce2cded5
L
8324
8325
f2c621e4
AS
8326## CAVEAT EMPTOR:
8327## There is no encapsulation within the following macros, do not change
8328## the running order or otherwise move them around unless you know exactly
8329## what you are doing...
ce2cded5
L
8330if test -n "$compiler"; then
8331
8332lt_prog_compiler_no_builtin_flag=
8333
8334if test "$GCC" = yes; then
3725885a
RW
8335 case $cc_basename in
8336 nvcc*)
8337 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8338 *)
8339 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8340 esac
ce2cded5 8341
81ecdfbb
RW
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8343$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 8344if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
81ecdfbb 8345 $as_echo_n "(cached) " >&6
ce2cded5
L
8346else
8347 lt_cv_prog_compiler_rtti_exceptions=no
8348 ac_outfile=conftest.$ac_objext
8349 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8350 lt_compiler_flag="-fno-rtti -fno-exceptions"
8351 # Insert the option either (1) after the last *FLAGS variable, or
8352 # (2) before a word containing "conftest.", or (3) at the end.
8353 # Note that $ac_compile itself does not contain backslashes and begins
8354 # with a dollar sign (not a hyphen), so the echo should work correctly.
8355 # The option is referenced via a variable to avoid confusing sed.
8356 lt_compile=`echo "$ac_compile" | $SED \
8357 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8359 -e 's:$: $lt_compiler_flag:'`
3725885a 8360 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8361 (eval "$lt_compile" 2>conftest.err)
8362 ac_status=$?
8363 cat conftest.err >&5
3725885a 8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8365 if (exit $ac_status) && test -s "$ac_outfile"; then
8366 # The compiler can only warn and ignore the option if not recognized
8367 # So say no if there are warnings other than the usual output.
3725885a 8368 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8369 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8370 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8371 lt_cv_prog_compiler_rtti_exceptions=yes
8372 fi
8373 fi
8374 $RM conftest*
8375
8376fi
81ecdfbb
RW
8377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8378$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
ce2cded5
L
8379
8380if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8381 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8382else
8383 :
8384fi
8385
8386fi
8387
8388
8389
8390
8391
8392
8393 lt_prog_compiler_wl=
8394lt_prog_compiler_pic=
8395lt_prog_compiler_static=
8396
f2c621e4
AS
8397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8398$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
ce2cded5
L
8399
8400 if test "$GCC" = yes; then
8401 lt_prog_compiler_wl='-Wl,'
8402 lt_prog_compiler_static='-static'
8403
8404 case $host_os in
8405 aix*)
8406 # All AIX code is PIC.
8407 if test "$host_cpu" = ia64; then
8408 # AIX 5 now supports IA64 processor
8409 lt_prog_compiler_static='-Bstatic'
8410 fi
6c9c0a50 8411 lt_prog_compiler_pic='-fPIC'
ce2cded5 8412 ;;
d7040cdb
SE
8413
8414 amigaos*)
718a6fd8
SE
8415 case $host_cpu in
8416 powerpc)
8417 # see comment about AmigaOS4 .so support
8418 lt_prog_compiler_pic='-fPIC'
8419 ;;
8420 m68k)
8421 # FIXME: we need at least 68020 code to build shared libraries, but
8422 # adding the `-m68020' flag to GCC prevents building anything better,
8423 # like `-m68040'.
8424 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8425 ;;
8426 esac
d7040cdb
SE
8427 ;;
8428
ce2cded5
L
8429 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8430 # PIC is the default for these OSes.
d7040cdb
SE
8431 ;;
8432
718a6fd8 8433 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8434 # This hack is so that the source file can tell whether it is being
8435 # built for inclusion in a dll (and should export symbols for example).
8436 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8437 # (--disable-auto-import) libraries
8438 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8439 ;;
8440
8441 darwin* | rhapsody*)
ce2cded5
L
8442 # PIC is the default on this platform
8443 # Common symbols not allowed in MH_DYLIB files
8444 lt_prog_compiler_pic='-fno-common'
8445 ;;
8446
3725885a
RW
8447 haiku*)
8448 # PIC is the default for Haiku.
8449 # The "-static" flag exists, but is broken.
8450 lt_prog_compiler_static=
8451 ;;
8452
ce2cded5 8453 hpux*)
718a6fd8
SE
8454 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8455 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8456 # sets the default TLS model and affects inlining.
ce2cded5 8457 case $host_cpu in
718a6fd8 8458 hppa*64*)
ce2cded5 8459 # +Z the default
d7040cdb 8460 ;;
ce2cded5
L
8461 *)
8462 lt_prog_compiler_pic='-fPIC'
d7040cdb
SE
8463 ;;
8464 esac
ce2cded5 8465 ;;
d7040cdb 8466
ce2cded5
L
8467 interix[3-9]*)
8468 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8469 # Instead, we relocate shared libraries at runtime.
d7040cdb
SE
8470 ;;
8471
ce2cded5
L
8472 msdosdjgpp*)
8473 # Just because we use GCC doesn't mean we suddenly get shared libraries
8474 # on systems that don't support them.
8475 lt_prog_compiler_can_build_shared=no
8476 enable_shared=no
d7040cdb
SE
8477 ;;
8478
ce2cded5
L
8479 *nto* | *qnx*)
8480 # QNX uses GNU C++, but need to define -shared option too, otherwise
8481 # it will coredump.
8482 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8483 ;;
8484
ce2cded5
L
8485 sysv4*MP*)
8486 if test -d /usr/nec; then
8487 lt_prog_compiler_pic=-Kconform_pic
8488 fi
d7040cdb
SE
8489 ;;
8490
ce2cded5
L
8491 *)
8492 lt_prog_compiler_pic='-fPIC'
d7040cdb 8493 ;;
ce2cded5 8494 esac
3725885a
RW
8495
8496 case $cc_basename in
8497 nvcc*) # Cuda Compiler Driver 2.2
8498 lt_prog_compiler_wl='-Xlinker '
8499 lt_prog_compiler_pic='-Xcompiler -fPIC'
8500 ;;
8501 esac
ce2cded5
L
8502 else
8503 # PORTME Check for flag to pass linker flags through the system compiler.
8504 case $host_os in
8505 aix*)
8506 lt_prog_compiler_wl='-Wl,'
8507 if test "$host_cpu" = ia64; then
8508 # AIX 5 now supports IA64 processor
8509 lt_prog_compiler_static='-Bstatic'
d7040cdb 8510 else
ce2cded5 8511 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
d7040cdb 8512 fi
ce2cded5 8513 ;;
d7040cdb 8514
718a6fd8 8515 mingw* | cygwin* | pw32* | os2* | cegcc*)
ce2cded5
L
8516 # This hack is so that the source file can tell whether it is being
8517 # built for inclusion in a dll (and should export symbols for example).
8518 lt_prog_compiler_pic='-DDLL_EXPORT'
d7040cdb
SE
8519 ;;
8520
ce2cded5
L
8521 hpux9* | hpux10* | hpux11*)
8522 lt_prog_compiler_wl='-Wl,'
8523 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8524 # not for PA HP-UX.
8525 case $host_cpu in
8526 hppa*64*|ia64*)
8527 # +Z the default
8528 ;;
8529 *)
8530 lt_prog_compiler_pic='+Z'
8531 ;;
8532 esac
8533 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8534 lt_prog_compiler_static='${wl}-a ${wl}archive'
d7040cdb
SE
8535 ;;
8536
ce2cded5
L
8537 irix5* | irix6* | nonstopux*)
8538 lt_prog_compiler_wl='-Wl,'
8539 # PIC (with -KPIC) is the default.
8540 lt_prog_compiler_static='-non_shared'
8541 ;;
d7040cdb 8542
58e24671 8543 linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5 8544 case $cc_basename in
718a6fd8
SE
8545 # old Intel for x86_64 which still supported -KPIC.
8546 ecc*)
ce2cded5
L
8547 lt_prog_compiler_wl='-Wl,'
8548 lt_prog_compiler_pic='-KPIC'
8549 lt_prog_compiler_static='-static'
8550 ;;
718a6fd8
SE
8551 # icc used to be incompatible with GCC.
8552 # ICC 10 doesn't accept -KPIC any more.
8553 icc* | ifort*)
8554 lt_prog_compiler_wl='-Wl,'
8555 lt_prog_compiler_pic='-fPIC'
8556 lt_prog_compiler_static='-static'
8557 ;;
8558 # Lahey Fortran 8.1.
8559 lf95*)
8560 lt_prog_compiler_wl='-Wl,'
8561 lt_prog_compiler_pic='--shared'
8562 lt_prog_compiler_static='--static'
8563 ;;
3725885a 8564 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
ce2cded5
L
8565 # Portland Group compilers (*not* the Pentium gcc compiler,
8566 # which looks to be a dead project)
8567 lt_prog_compiler_wl='-Wl,'
8568 lt_prog_compiler_pic='-fpic'
8569 lt_prog_compiler_static='-Bstatic'
8570 ;;
8571 ccc*)
8572 lt_prog_compiler_wl='-Wl,'
8573 # All Alpha code is PIC.
8574 lt_prog_compiler_static='-non_shared'
8575 ;;
3725885a
RW
8576 xl* | bgxl* | bgf* | mpixl*)
8577 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
718a6fd8
SE
8578 lt_prog_compiler_wl='-Wl,'
8579 lt_prog_compiler_pic='-qpic'
8580 lt_prog_compiler_static='-qstaticlink'
8581 ;;
ce2cded5
L
8582 *)
8583 case `$CC -V 2>&1 | sed 5q` in
3725885a
RW
8584 *Sun\ F* | *Sun*Fortran*)
8585 # Sun Fortran 8.3 passes all unrecognized flags to the linker
ce2cded5
L
8586 lt_prog_compiler_pic='-KPIC'
8587 lt_prog_compiler_static='-Bstatic'
3725885a 8588 lt_prog_compiler_wl=''
d7040cdb 8589 ;;
3725885a
RW
8590 *Sun\ C*)
8591 # Sun C 5.9
ce2cded5
L
8592 lt_prog_compiler_pic='-KPIC'
8593 lt_prog_compiler_static='-Bstatic'
3725885a 8594 lt_prog_compiler_wl='-Wl,'
d7040cdb
SE
8595 ;;
8596 esac
ce2cded5
L
8597 ;;
8598 esac
d7040cdb
SE
8599 ;;
8600
ce2cded5
L
8601 newsos6)
8602 lt_prog_compiler_pic='-KPIC'
8603 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8604 ;;
8605
ce2cded5
L
8606 *nto* | *qnx*)
8607 # QNX uses GNU C++, but need to define -shared option too, otherwise
8608 # it will coredump.
8609 lt_prog_compiler_pic='-fPIC -shared'
d7040cdb
SE
8610 ;;
8611
ce2cded5
L
8612 osf3* | osf4* | osf5*)
8613 lt_prog_compiler_wl='-Wl,'
8614 # All OSF/1 code is PIC.
8615 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8616 ;;
8617
ce2cded5
L
8618 rdos*)
8619 lt_prog_compiler_static='-non_shared'
d7040cdb
SE
8620 ;;
8621
8622 solaris*)
ce2cded5
L
8623 lt_prog_compiler_pic='-KPIC'
8624 lt_prog_compiler_static='-Bstatic'
8625 case $cc_basename in
f2c621e4 8626 f77* | f90* | f95*)
ce2cded5 8627 lt_prog_compiler_wl='-Qoption ld ';;
d7040cdb 8628 *)
ce2cded5 8629 lt_prog_compiler_wl='-Wl,';;
d7040cdb 8630 esac
d7040cdb
SE
8631 ;;
8632
8633 sunos4*)
ce2cded5
L
8634 lt_prog_compiler_wl='-Qoption ld '
8635 lt_prog_compiler_pic='-PIC'
8636 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8637 ;;
8638
ce2cded5
L
8639 sysv4 | sysv4.2uw2* | sysv4.3*)
8640 lt_prog_compiler_wl='-Wl,'
8641 lt_prog_compiler_pic='-KPIC'
8642 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8643 ;;
8644
8645 sysv4*MP*)
ce2cded5
L
8646 if test -d /usr/nec ;then
8647 lt_prog_compiler_pic='-Kconform_pic'
8648 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8649 fi
8650 ;;
8651
ce2cded5
L
8652 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8653 lt_prog_compiler_wl='-Wl,'
8654 lt_prog_compiler_pic='-KPIC'
8655 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8656 ;;
8657
ce2cded5
L
8658 unicos*)
8659 lt_prog_compiler_wl='-Wl,'
8660 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8661 ;;
8662
8663 uts4*)
ce2cded5
L
8664 lt_prog_compiler_pic='-pic'
8665 lt_prog_compiler_static='-Bstatic'
d7040cdb
SE
8666 ;;
8667
8668 *)
ce2cded5 8669 lt_prog_compiler_can_build_shared=no
d7040cdb
SE
8670 ;;
8671 esac
d7040cdb
SE
8672 fi
8673
ce2cded5
L
8674case $host_os in
8675 # For platforms which do not support PIC, -DPIC is meaningless:
8676 *djgpp*)
8677 lt_prog_compiler_pic=
8678 ;;
8679 *)
8680 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8681 ;;
8682esac
f2c621e4
AS
8683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8684$as_echo "$lt_prog_compiler_pic" >&6; }
8685
8686
8687
8688
d7040cdb
SE
8689
8690
8691#
ce2cded5 8692# Check to make sure the PIC flag actually works.
d7040cdb 8693#
ce2cded5 8694if test -n "$lt_prog_compiler_pic"; then
81ecdfbb
RW
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8696$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8697if ${lt_cv_prog_compiler_pic_works+:} false; then :
81ecdfbb 8698 $as_echo_n "(cached) " >&6
ce2cded5 8699else
718a6fd8 8700 lt_cv_prog_compiler_pic_works=no
ce2cded5
L
8701 ac_outfile=conftest.$ac_objext
8702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8703 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8704 # Insert the option either (1) after the last *FLAGS variable, or
8705 # (2) before a word containing "conftest.", or (3) at the end.
8706 # Note that $ac_compile itself does not contain backslashes and begins
8707 # with a dollar sign (not a hyphen), so the echo should work correctly.
8708 # The option is referenced via a variable to avoid confusing sed.
8709 lt_compile=`echo "$ac_compile" | $SED \
8710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8712 -e 's:$: $lt_compiler_flag:'`
3725885a 8713 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8714 (eval "$lt_compile" 2>conftest.err)
8715 ac_status=$?
8716 cat conftest.err >&5
3725885a 8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8718 if (exit $ac_status) && test -s "$ac_outfile"; then
8719 # The compiler can only warn and ignore the option if not recognized
8720 # So say no if there are warnings other than the usual output.
3725885a 8721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
ce2cded5
L
8722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8724 lt_cv_prog_compiler_pic_works=yes
ce2cded5
L
8725 fi
8726 fi
8727 $RM conftest*
d7040cdb 8728
ce2cded5 8729fi
81ecdfbb
RW
8730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8731$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
d7040cdb 8732
718a6fd8 8733if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
ce2cded5
L
8734 case $lt_prog_compiler_pic in
8735 "" | " "*) ;;
8736 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8737 esac
8738else
8739 lt_prog_compiler_pic=
8740 lt_prog_compiler_can_build_shared=no
8741fi
d7040cdb 8742
ce2cded5 8743fi
d7040cdb
SE
8744
8745
8746
8747
8748
8749
ce2cded5
L
8750#
8751# Check to make sure the static flag actually works.
8752#
8753wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
81ecdfbb
RW
8754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8755$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8756if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8757 $as_echo_n "(cached) " >&6
ce2cded5 8758else
718a6fd8 8759 lt_cv_prog_compiler_static_works=no
ce2cded5
L
8760 save_LDFLAGS="$LDFLAGS"
8761 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8762 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8764 # The linker can only warn and ignore the option if not recognized
8765 # So say no if there are warnings
8766 if test -s conftest.err; then
8767 # Append any errors to the config.log.
8768 cat conftest.err 1>&5
3725885a 8769 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
ce2cded5
L
8770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8771 if diff conftest.exp conftest.er2 >/dev/null; then
718a6fd8 8772 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8773 fi
8774 else
718a6fd8 8775 lt_cv_prog_compiler_static_works=yes
ce2cded5
L
8776 fi
8777 fi
718a6fd8 8778 $RM -r conftest*
ce2cded5 8779 LDFLAGS="$save_LDFLAGS"
d7040cdb 8780
ce2cded5 8781fi
81ecdfbb
RW
8782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8783$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
d7040cdb 8784
718a6fd8 8785if test x"$lt_cv_prog_compiler_static_works" = xyes; then
ce2cded5
L
8786 :
8787else
8788 lt_prog_compiler_static=
8789fi
d7040cdb
SE
8790
8791
8792
8793
8794
8795
8796
81ecdfbb
RW
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8798$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8799if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8800 $as_echo_n "(cached) " >&6
ce2cded5
L
8801else
8802 lt_cv_prog_compiler_c_o=no
8803 $RM -r conftest 2>/dev/null
8804 mkdir conftest
8805 cd conftest
8806 mkdir out
8807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8808
ce2cded5
L
8809 lt_compiler_flag="-o out/conftest2.$ac_objext"
8810 # Insert the option either (1) after the last *FLAGS variable, or
8811 # (2) before a word containing "conftest.", or (3) at the end.
8812 # Note that $ac_compile itself does not contain backslashes and begins
8813 # with a dollar sign (not a hyphen), so the echo should work correctly.
8814 lt_compile=`echo "$ac_compile" | $SED \
8815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8817 -e 's:$: $lt_compiler_flag:'`
3725885a 8818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8819 (eval "$lt_compile" 2>out/conftest.err)
8820 ac_status=$?
8821 cat out/conftest.err >&5
3725885a 8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8823 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8824 then
8825 # The compiler can only warn and ignore the option if not recognized
8826 # So say no if there are warnings
3725885a 8827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8830 lt_cv_prog_compiler_c_o=yes
8831 fi
8832 fi
8833 chmod u+w . 2>&5
8834 $RM conftest*
8835 # SGI C++ compiler will create directory out/ii_files/ for
8836 # template instantiation
8837 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8838 $RM out/* && rmdir out
8839 cd ..
8840 $RM -r conftest
8841 $RM conftest*
d7040cdb 8842
ce2cded5 8843fi
81ecdfbb
RW
8844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8845$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8846
8847
8848
8849
8850
8851
81ecdfbb
RW
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8853$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8854if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb 8855 $as_echo_n "(cached) " >&6
ce2cded5
L
8856else
8857 lt_cv_prog_compiler_c_o=no
8858 $RM -r conftest 2>/dev/null
8859 mkdir conftest
8860 cd conftest
8861 mkdir out
8862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 8863
ce2cded5
L
8864 lt_compiler_flag="-o out/conftest2.$ac_objext"
8865 # Insert the option either (1) after the last *FLAGS variable, or
8866 # (2) before a word containing "conftest.", or (3) at the end.
8867 # Note that $ac_compile itself does not contain backslashes and begins
8868 # with a dollar sign (not a hyphen), so the echo should work correctly.
8869 lt_compile=`echo "$ac_compile" | $SED \
8870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8872 -e 's:$: $lt_compiler_flag:'`
3725885a 8873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
ce2cded5
L
8874 (eval "$lt_compile" 2>out/conftest.err)
8875 ac_status=$?
8876 cat out/conftest.err >&5
3725885a 8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
ce2cded5
L
8878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8879 then
8880 # The compiler can only warn and ignore the option if not recognized
8881 # So say no if there are warnings
3725885a 8882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
ce2cded5
L
8883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8885 lt_cv_prog_compiler_c_o=yes
8886 fi
8887 fi
8888 chmod u+w . 2>&5
8889 $RM conftest*
8890 # SGI C++ compiler will create directory out/ii_files/ for
8891 # template instantiation
8892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8893 $RM out/* && rmdir out
8894 cd ..
8895 $RM -r conftest
8896 $RM conftest*
d7040cdb 8897
ce2cded5 8898fi
81ecdfbb
RW
8899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8900$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
d7040cdb
SE
8901
8902
8903
8904
ce2cded5
L
8905hard_links="nottested"
8906if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8907 # do not overwrite the value of need_locks provided by the user
81ecdfbb
RW
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8909$as_echo_n "checking if we can lock with hard links... " >&6; }
ce2cded5
L
8910 hard_links=yes
8911 $RM conftest*
8912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8913 touch conftest.a
8914 ln conftest.a conftest.b 2>&5 || hard_links=no
8915 ln conftest.a conftest.b 2>/dev/null && hard_links=no
81ecdfbb
RW
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8917$as_echo "$hard_links" >&6; }
ce2cded5 8918 if test "$hard_links" = no; then
81ecdfbb
RW
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8920$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
ce2cded5
L
8921 need_locks=warn
8922 fi
8923else
8924 need_locks=no
8925fi
d7040cdb
SE
8926
8927
8928
8929
8930
8931
81ecdfbb
RW
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8933$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
d7040cdb 8934
ce2cded5
L
8935 runpath_var=
8936 allow_undefined_flag=
8937 always_export_symbols=no
8938 archive_cmds=
8939 archive_expsym_cmds=
8940 compiler_needs_object=no
8941 enable_shared_with_static_runtimes=no
8942 export_dynamic_flag_spec=
8943 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8944 hardcode_automatic=no
8945 hardcode_direct=no
8946 hardcode_direct_absolute=no
8947 hardcode_libdir_flag_spec=
8948 hardcode_libdir_flag_spec_ld=
8949 hardcode_libdir_separator=
8950 hardcode_minus_L=no
8951 hardcode_shlibpath_var=unsupported
8952 inherit_rpath=no
8953 link_all_deplibs=unknown
8954 module_cmds=
8955 module_expsym_cmds=
8956 old_archive_from_new_cmds=
8957 old_archive_from_expsyms_cmds=
8958 thread_safe_flag_spec=
8959 whole_archive_flag_spec=
8960 # include_expsyms should be a list of space-separated symbols to be *always*
8961 # included in the symbol list
8962 include_expsyms=
8963 # exclude_expsyms can be an extended regexp of symbols to exclude
8964 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8965 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8966 # as well as any symbol that contains `d'.
718a6fd8 8967 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
ce2cded5
L
8968 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8969 # platforms (ab)use it in PIC code, but their linkers get confused if
8970 # the symbol is explicitly referenced. Since portable code cannot
8971 # rely on this symbol name, it's probably fine to never include it in
8972 # preloaded symbol tables.
718a6fd8 8973 # Exclude shared library initialization/finalization symbols.
ce2cded5 8974 extract_expsyms_cmds=
d7040cdb 8975
ce2cded5 8976 case $host_os in
718a6fd8 8977 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
8978 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8979 # When not using gcc, we currently assume that we are using
8980 # Microsoft Visual C++.
8981 if test "$GCC" != yes; then
8982 with_gnu_ld=no
8983 fi
8984 ;;
8985 interix*)
8986 # we just hope/assume this is gcc and not c89 (= MSVC++)
8987 with_gnu_ld=yes
8988 ;;
8989 openbsd*)
8990 with_gnu_ld=no
8991 ;;
8992 esac
d7040cdb 8993
ce2cded5 8994 ld_shlibs=yes
3725885a
RW
8995
8996 # On some targets, GNU ld is compatible enough with the native linker
8997 # that we're better off using the native interface for both.
8998 lt_use_gnu_ld_interface=no
ce2cded5 8999 if test "$with_gnu_ld" = yes; then
3725885a
RW
9000 case $host_os in
9001 aix*)
9002 # The AIX port of GNU ld has always aspired to compatibility
9003 # with the native linker. However, as the warning in the GNU ld
9004 # block says, versions before 2.19.5* couldn't really create working
9005 # shared libraries, regardless of the interface used.
9006 case `$LD -v 2>&1` in
9007 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9008 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9009 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9010 *)
9011 lt_use_gnu_ld_interface=yes
9012 ;;
9013 esac
9014 ;;
9015 *)
9016 lt_use_gnu_ld_interface=yes
9017 ;;
9018 esac
9019 fi
9020
9021 if test "$lt_use_gnu_ld_interface" = yes; then
ce2cded5
L
9022 # If archive_cmds runs LD, not CC, wlarc should be empty
9023 wlarc='${wl}'
d7040cdb 9024
ce2cded5
L
9025 # Set some defaults for GNU ld with shared library support. These
9026 # are reset later if shared libraries are not supported. Putting them
9027 # here allows them to be overridden if necessary.
9028 runpath_var=LD_RUN_PATH
9029 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9030 export_dynamic_flag_spec='${wl}--export-dynamic'
9031 # ancient GNU ld didn't support --whole-archive et. al.
9032 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9033 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9034 else
9035 whole_archive_flag_spec=
9036 fi
9037 supports_anon_versioning=no
9038 case `$LD -v 2>&1` in
3725885a 9039 *GNU\ gold*) supports_anon_versioning=yes ;;
ce2cded5
L
9040 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9041 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9042 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9043 *\ 2.11.*) ;; # other 2.11 versions
9044 *) supports_anon_versioning=yes ;;
9045 esac
d7040cdb 9046
ce2cded5
L
9047 # See if GNU ld supports shared libraries.
9048 case $host_os in
50e7d84b 9049 aix[3-9]*)
ce2cded5
L
9050 # On AIX/PPC, the GNU linker is very broken
9051 if test "$host_cpu" != ia64; then
9052 ld_shlibs=no
9053 cat <<_LT_EOF 1>&2
d7040cdb 9054
3725885a 9055*** Warning: the GNU linker, at least up to release 2.19, is reported
ce2cded5
L
9056*** to be unable to reliably create shared libraries on AIX.
9057*** Therefore, libtool is disabling shared libraries support. If you
3725885a
RW
9058*** really care for shared libraries, you may want to install binutils
9059*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9060*** You will then need to restart the configuration process.
d7040cdb 9061
ce2cded5
L
9062_LT_EOF
9063 fi
9064 ;;
d7040cdb 9065
ce2cded5 9066 amigaos*)
718a6fd8
SE
9067 case $host_cpu in
9068 powerpc)
9069 # see comment about AmigaOS4 .so support
9070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9071 archive_expsym_cmds=''
9072 ;;
9073 m68k)
9074 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)'
9075 hardcode_libdir_flag_spec='-L$libdir'
9076 hardcode_minus_L=yes
9077 ;;
9078 esac
ce2cded5 9079 ;;
d7040cdb 9080
ce2cded5
L
9081 beos*)
9082 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9083 allow_undefined_flag=unsupported
9084 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9085 # support --undefined. This deserves some investigation. FIXME
9086 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087 else
9088 ld_shlibs=no
9089 fi
9090 ;;
d7040cdb 9091
718a6fd8 9092 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9093 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9094 # as there is no search path for DLLs.
9095 hardcode_libdir_flag_spec='-L$libdir'
3725885a 9096 export_dynamic_flag_spec='${wl}--export-all-symbols'
ce2cded5
L
9097 allow_undefined_flag=unsupported
9098 always_export_symbols=no
9099 enable_shared_with_static_runtimes=yes
f2c621e4 9100 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
d7040cdb 9101
ce2cded5
L
9102 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9103 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9104 # If the export-symbols file already is a .def file (1st line
9105 # is EXPORTS), use it as is; otherwise, prepend...
9106 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9107 cp $export_symbols $output_objdir/$soname.def;
9108 else
9109 echo EXPORTS > $output_objdir/$soname.def;
9110 cat $export_symbols >> $output_objdir/$soname.def;
9111 fi~
9112 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9113 else
9114 ld_shlibs=no
9115 fi
9116 ;;
d7040cdb 9117
3725885a
RW
9118 haiku*)
9119 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9120 link_all_deplibs=yes
9121 ;;
9122
ce2cded5
L
9123 interix[3-9]*)
9124 hardcode_direct=no
9125 hardcode_shlibpath_var=no
9126 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9127 export_dynamic_flag_spec='${wl}-E'
9128 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9129 # Instead, shared libraries are loaded at an image base (0x10000000 by
9130 # default) and relocated if they conflict, which is a slow very memory
9131 # consuming and fragmenting process. To avoid this, we pick a random,
9132 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9133 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9134 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9135 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'
9136 ;;
d7040cdb 9137
58e24671 9138 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
9139 tmp_diet=no
9140 if test "$host_os" = linux-dietlibc; then
9141 case $cc_basename in
9142 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9143 esac
9144 fi
9145 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9146 && test "$tmp_diet" = no
9147 then
6e733cce 9148 tmp_addflag=' $pic_flag'
718a6fd8 9149 tmp_sharedflag='-shared'
ce2cded5
L
9150 case $cc_basename,$host_cpu in
9151 pgcc*) # Portland Group C compiler
3725885a 9152 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
9153 tmp_addflag=' $pic_flag'
9154 ;;
3725885a
RW
9155 pgf77* | pgf90* | pgf95* | pgfortran*)
9156 # Portland Group f77 and f90 compilers
9157 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
9158 tmp_addflag=' $pic_flag -Mnomain' ;;
9159 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9160 tmp_addflag=' -i_dynamic' ;;
9161 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9162 tmp_addflag=' -i_dynamic -nofor_main' ;;
9163 ifc* | ifort*) # Intel Fortran compiler
9164 tmp_addflag=' -nofor_main' ;;
718a6fd8
SE
9165 lf95*) # Lahey Fortran 8.1
9166 whole_archive_flag_spec=
9167 tmp_sharedflag='--shared' ;;
3725885a 9168 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
718a6fd8
SE
9169 tmp_sharedflag='-qmkshrobj'
9170 tmp_addflag= ;;
3725885a
RW
9171 nvcc*) # Cuda Compiler Driver 2.2
9172 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'
9173 compiler_needs_object=yes
9174 ;;
ce2cded5
L
9175 esac
9176 case `$CC -V 2>&1 | sed 5q` in
9177 *Sun\ C*) # Sun C 5.9
3725885a 9178 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
ce2cded5
L
9179 compiler_needs_object=yes
9180 tmp_sharedflag='-G' ;;
9181 *Sun\ F*) # Sun Fortran 8.3
9182 tmp_sharedflag='-G' ;;
ce2cded5
L
9183 esac
9184 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
d7040cdb 9185
ce2cded5
L
9186 if test "x$supports_anon_versioning" = xyes; then
9187 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9188 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9189 echo "local: *; };" >> $output_objdir/$libname.ver~
9190 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9191 fi
718a6fd8
SE
9192
9193 case $cc_basename in
3725885a 9194 xlf* | bgf* | bgxlf* | mpixlf*)
718a6fd8
SE
9195 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9196 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9197 hardcode_libdir_flag_spec=
9198 hardcode_libdir_flag_spec_ld='-rpath $libdir'
f2c621e4 9199 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
718a6fd8
SE
9200 if test "x$supports_anon_versioning" = xyes; then
9201 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9202 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9203 echo "local: *; };" >> $output_objdir/$libname.ver~
f2c621e4 9204 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
718a6fd8
SE
9205 fi
9206 ;;
9207 esac
ce2cded5
L
9208 else
9209 ld_shlibs=no
9210 fi
9211 ;;
d7040cdb 9212
ce2cded5
L
9213 netbsd*)
9214 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9215 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9216 wlarc=
9217 else
f2c621e4
AS
9218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9219 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
9220 fi
9221 ;;
d7040cdb 9222
ce2cded5
L
9223 solaris*)
9224 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9225 ld_shlibs=no
9226 cat <<_LT_EOF 1>&2
d7040cdb 9227
ce2cded5
L
9228*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9229*** create shared libraries on Solaris systems. Therefore, libtool
9230*** is disabling shared libraries support. We urge you to upgrade GNU
9231*** binutils to release 2.9.1 or newer. Another option is to modify
9232*** your PATH or compiler configuration so that the native linker is
9233*** used, and then restart.
d7040cdb 9234
ce2cded5
L
9235_LT_EOF
9236 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
9237 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9238 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
9239 else
9240 ld_shlibs=no
9241 fi
9242 ;;
d7040cdb 9243
ce2cded5
L
9244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9245 case `$LD -v 2>&1` in
9246 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9247 ld_shlibs=no
9248 cat <<_LT_EOF 1>&2
d7040cdb 9249
ce2cded5
L
9250*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9251*** reliably create shared libraries on SCO systems. Therefore, libtool
9252*** is disabling shared libraries support. We urge you to upgrade GNU
9253*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9254*** your PATH or compiler configuration so that the native linker is
9255*** used, and then restart.
d7040cdb 9256
ce2cded5
L
9257_LT_EOF
9258 ;;
9259 *)
9260 # For security reasons, it is highly recommended that you always
9261 # use absolute paths for naming shared libraries, and exclude the
9262 # DT_RUNPATH tag from executables and libraries. But doing so
9263 # requires that you compile everything twice, which is a pain.
9264 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9266 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9268 else
9269 ld_shlibs=no
9270 fi
9271 ;;
9272 esac
9273 ;;
d7040cdb 9274
ce2cded5
L
9275 sunos4*)
9276 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9277 wlarc=
9278 hardcode_direct=yes
9279 hardcode_shlibpath_var=no
9280 ;;
d7040cdb 9281
ce2cded5
L
9282 *)
9283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
f2c621e4
AS
9284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
ce2cded5
L
9286 else
9287 ld_shlibs=no
9288 fi
9289 ;;
9290 esac
d7040cdb 9291
ce2cded5
L
9292 if test "$ld_shlibs" = no; then
9293 runpath_var=
9294 hardcode_libdir_flag_spec=
9295 export_dynamic_flag_spec=
9296 whole_archive_flag_spec=
9297 fi
9298 else
9299 # PORTME fill in a description of your system's linker (not GNU ld)
9300 case $host_os in
9301 aix3*)
9302 allow_undefined_flag=unsupported
9303 always_export_symbols=yes
9304 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'
9305 # Note: this linker hardcodes the directories in LIBPATH if there
9306 # are no directories specified by -L.
9307 hardcode_minus_L=yes
9308 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9309 # Neither direct hardcoding nor static linking is supported with a
9310 # broken collect2.
9311 hardcode_direct=unsupported
9312 fi
9313 ;;
d7040cdb 9314
50e7d84b 9315 aix[4-9]*)
ce2cded5
L
9316 if test "$host_cpu" = ia64; then
9317 # On IA64, the linker does run time linking by default, so we don't
9318 # have to do anything special.
9319 aix_use_runtimelinking=no
9320 exp_sym_flag='-Bexport'
9321 no_entry_flag=""
9322 else
9323 # If we're using GNU nm, then we don't want the "-C" option.
9324 # -C means demangle to AIX nm, but means don't demangle with GNU nm
3725885a
RW
9325 # Also, AIX nm treats weak defined symbols like other global
9326 # defined symbols, whereas GNU nm marks them as "W".
ce2cded5 9327 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
3725885a 9328 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5 9329 else
5c14705f 9330 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
ce2cded5
L
9331 fi
9332 aix_use_runtimelinking=no
d7040cdb 9333
ce2cded5
L
9334 # Test if we are trying to use run time linking or normal
9335 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9336 # need to do runtime linking.
50e7d84b 9337 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
ce2cded5
L
9338 for ld_flag in $LDFLAGS; do
9339 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9340 aix_use_runtimelinking=yes
9341 break
9342 fi
9343 done
9344 ;;
9345 esac
d7040cdb 9346
ce2cded5
L
9347 exp_sym_flag='-bexport'
9348 no_entry_flag='-bnoentry'
9349 fi
d7040cdb 9350
ce2cded5
L
9351 # When large executables or shared objects are built, AIX ld can
9352 # have problems creating the table of contents. If linking a library
9353 # or program results in "error TOC overflow" add -mminimal-toc to
9354 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9355 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
d7040cdb 9356
ce2cded5
L
9357 archive_cmds=''
9358 hardcode_direct=yes
9359 hardcode_direct_absolute=yes
9360 hardcode_libdir_separator=':'
9361 link_all_deplibs=yes
9362 file_list_spec='${wl}-f,'
d7040cdb 9363
ce2cded5
L
9364 if test "$GCC" = yes; then
9365 case $host_os in aix4.[012]|aix4.[012].*)
9366 # We only want to do this on AIX 4.2 and lower, the check
9367 # below for broken collect2 doesn't work under 4.3+
9368 collect2name=`${CC} -print-prog-name=collect2`
9369 if test -f "$collect2name" &&
9370 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9371 then
9372 # We have reworked collect2
9373 :
9374 else
9375 # We have old collect2
9376 hardcode_direct=unsupported
9377 # It fails to find uninstalled libraries when the uninstalled
9378 # path is not listed in the libpath. Setting hardcode_minus_L
9379 # to unsupported forces relinking
9380 hardcode_minus_L=yes
9381 hardcode_libdir_flag_spec='-L$libdir'
9382 hardcode_libdir_separator=
9383 fi
9384 ;;
9385 esac
9386 shared_flag='-shared'
9387 if test "$aix_use_runtimelinking" = yes; then
9388 shared_flag="$shared_flag "'${wl}-G'
9389 fi
9390 else
9391 # not using gcc
9392 if test "$host_cpu" = ia64; then
9393 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9394 # chokes on -Wl,-G. The following line is correct:
9395 shared_flag='-G'
9396 else
9397 if test "$aix_use_runtimelinking" = yes; then
9398 shared_flag='${wl}-G'
9399 else
9400 shared_flag='${wl}-bM:SRE'
9401 fi
9402 fi
9403 fi
d7040cdb 9404
718a6fd8 9405 export_dynamic_flag_spec='${wl}-bexpall'
ce2cded5
L
9406 # It seems that -bexpall does not export symbols beginning with
9407 # underscore (_), so it is better to generate a list of symbols to export.
9408 always_export_symbols=yes
9409 if test "$aix_use_runtimelinking" = yes; then
9410 # Warning - without using the other runtime loading flags (-brtl),
9411 # -berok will link without error, but may produce a broken library.
9412 allow_undefined_flag='-berok'
9413 # Determine the default libpath from the value encoded in an
9414 # empty executable.
f2c621e4 9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9416/* end confdefs.h. */
d7040cdb 9417
ce2cded5
L
9418int
9419main ()
9420{
d7040cdb 9421
ce2cded5
L
9422 ;
9423 return 0;
9424}
9425_ACEOF
81ecdfbb 9426if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9427
f2c621e4
AS
9428lt_aix_libpath_sed='
9429 /Import File Strings/,/^$/ {
9430 /^0/ {
9431 s/^0 *\(.*\)$/\1/
9432 p
9433 }
9434 }'
9435aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9436# Check for a 64-bit object if we didn't find anything.
9437if test -z "$aix_libpath"; then
9438 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9439fi
ce2cded5 9440fi
81ecdfbb
RW
9441rm -f core conftest.err conftest.$ac_objext \
9442 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9443if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9444
ce2cded5 9445 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
3725885a 9446 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
ce2cded5
L
9447 else
9448 if test "$host_cpu" = ia64; then
9449 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9450 allow_undefined_flag="-z nodefs"
9451 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"
9452 else
9453 # Determine the default libpath from the value encoded in an
9454 # empty executable.
f2c621e4 9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 9456/* end confdefs.h. */
d7040cdb 9457
ce2cded5
L
9458int
9459main ()
9460{
d7040cdb 9461
ce2cded5
L
9462 ;
9463 return 0;
9464}
9465_ACEOF
81ecdfbb 9466if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 9467
f2c621e4
AS
9468lt_aix_libpath_sed='
9469 /Import File Strings/,/^$/ {
9470 /^0/ {
9471 s/^0 *\(.*\)$/\1/
9472 p
9473 }
9474 }'
9475aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9476# Check for a 64-bit object if we didn't find anything.
9477if test -z "$aix_libpath"; then
9478 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9479fi
ce2cded5 9480fi
81ecdfbb
RW
9481rm -f core conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9483if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
d7040cdb 9484
ce2cded5
L
9485 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9486 # Warning - without using the other run time loading flags,
9487 # -berok will link without error, but may produce a broken library.
9488 no_undefined_flag=' ${wl}-bernotok'
9489 allow_undefined_flag=' ${wl}-berok'
3725885a
RW
9490 if test "$with_gnu_ld" = yes; then
9491 # We only use this code for GNU lds that support --whole-archive.
9492 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9493 else
9494 # Exported symbols can be pulled into shared objects from archives
9495 whole_archive_flag_spec='$convenience'
9496 fi
ce2cded5
L
9497 archive_cmds_need_lc=yes
9498 # This is similar to how AIX traditionally builds its shared libraries.
9499 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'
9500 fi
9501 fi
9502 ;;
d7040cdb 9503
ce2cded5 9504 amigaos*)
718a6fd8
SE
9505 case $host_cpu in
9506 powerpc)
9507 # see comment about AmigaOS4 .so support
9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509 archive_expsym_cmds=''
9510 ;;
9511 m68k)
9512 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)'
9513 hardcode_libdir_flag_spec='-L$libdir'
9514 hardcode_minus_L=yes
9515 ;;
9516 esac
ce2cded5 9517 ;;
d7040cdb 9518
ce2cded5
L
9519 bsdi[45]*)
9520 export_dynamic_flag_spec=-rdynamic
9521 ;;
d7040cdb 9522
718a6fd8 9523 cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
9524 # When not using gcc, we currently assume that we are using
9525 # Microsoft Visual C++.
9526 # hardcode_libdir_flag_spec is actually meaningless, as there is
9527 # no search path for DLLs.
f2c621e4
AS
9528 hardcode_libdir_flag_spec=' '
9529 allow_undefined_flag=unsupported
9530 # Tell ltmain to make .lib files, not .a files.
9531 libext=lib
9532 # Tell ltmain to make .dll files, not .so files.
9533 shrext_cmds=".dll"
9534 # FIXME: Setting linknames here is a bad hack.
9535 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9536 # The linker will automatically build a .lib file if we build a DLL.
9537 old_archive_from_new_cmds='true'
9538 # FIXME: Should let the user specify the lib program.
9539 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9540 fix_srcfile_path='`cygpath -w "$srcfile"`'
9541 enable_shared_with_static_runtimes=yes
ce2cded5 9542 ;;
d7040cdb 9543
ce2cded5 9544 darwin* | rhapsody*)
d7040cdb 9545
718a6fd8
SE
9546
9547 archive_cmds_need_lc=no
9548 hardcode_direct=no
9549 hardcode_automatic=yes
9550 hardcode_shlibpath_var=unsupported
3725885a
RW
9551 if test "$lt_cv_ld_force_load" = "yes"; then
9552 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\"`'
9553 else
9554 whole_archive_flag_spec=''
9555 fi
718a6fd8
SE
9556 link_all_deplibs=yes
9557 allow_undefined_flag="$_lt_dar_allow_undefined"
9558 case $cc_basename in
9559 ifort*) _lt_dar_can_shared=yes ;;
9560 *) _lt_dar_can_shared=$GCC ;;
9561 esac
9562 if test "$_lt_dar_can_shared" = "yes"; then
3725885a 9563 output_verbose_link_cmd=func_echo_all
718a6fd8
SE
9564 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9565 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9566 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}"
9567 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}"
9568
9569 else
9570 ld_shlibs=no
9571 fi
9572
ce2cded5 9573 ;;
d7040cdb 9574
ce2cded5
L
9575 dgux*)
9576 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9577 hardcode_libdir_flag_spec='-L$libdir'
9578 hardcode_shlibpath_var=no
9579 ;;
d7040cdb 9580
ce2cded5
L
9581 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9582 # support. Future versions do this automatically, but an explicit c++rt0.o
9583 # does not break anything, and helps significantly (at the cost of a little
9584 # extra space).
9585 freebsd2.2*)
9586 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9587 hardcode_libdir_flag_spec='-R$libdir'
9588 hardcode_direct=yes
9589 hardcode_shlibpath_var=no
9590 ;;
d7040cdb 9591
ce2cded5 9592 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6d2920c8 9593 freebsd2.*)
ce2cded5
L
9594 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9595 hardcode_direct=yes
9596 hardcode_minus_L=yes
9597 hardcode_shlibpath_var=no
9598 ;;
d7040cdb 9599
ce2cded5
L
9600 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9601 freebsd* | dragonfly*)
f2c621e4 9602 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9603 hardcode_libdir_flag_spec='-R$libdir'
9604 hardcode_direct=yes
9605 hardcode_shlibpath_var=no
9606 ;;
d7040cdb 9607
ce2cded5
L
9608 hpux9*)
9609 if test "$GCC" = yes; then
f2c621e4 9610 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'
ce2cded5
L
9611 else
9612 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'
9613 fi
9614 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9615 hardcode_libdir_separator=:
9616 hardcode_direct=yes
d7040cdb 9617
ce2cded5
L
9618 # hardcode_minus_L: Not really in the search PATH,
9619 # but as the default location of the library.
9620 hardcode_minus_L=yes
9621 export_dynamic_flag_spec='${wl}-E'
9622 ;;
d7040cdb 9623
ce2cded5 9624 hpux10*)
3725885a 9625 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
f2c621e4 9626 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9627 else
9628 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9629 fi
9630 if test "$with_gnu_ld" = no; then
9631 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9632 hardcode_libdir_flag_spec_ld='+b $libdir'
9633 hardcode_libdir_separator=:
9634 hardcode_direct=yes
9635 hardcode_direct_absolute=yes
9636 export_dynamic_flag_spec='${wl}-E'
9637 # hardcode_minus_L: Not really in the search PATH,
9638 # but as the default location of the library.
9639 hardcode_minus_L=yes
9640 fi
9641 ;;
d7040cdb 9642
ce2cded5 9643 hpux11*)
3725885a 9644 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
ce2cded5
L
9645 case $host_cpu in
9646 hppa*64*)
9647 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9648 ;;
9649 ia64*)
f2c621e4 9650 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9651 ;;
9652 *)
f2c621e4 9653 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5
L
9654 ;;
9655 esac
9656 else
9657 case $host_cpu in
9658 hppa*64*)
9659 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9660 ;;
9661 ia64*)
9662 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9663 ;;
9664 *)
3725885a
RW
9665
9666 # Older versions of the 11.00 compiler do not understand -b yet
9667 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9669$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9670if ${lt_cv_prog_compiler__b+:} false; then :
3725885a
RW
9671 $as_echo_n "(cached) " >&6
9672else
9673 lt_cv_prog_compiler__b=no
9674 save_LDFLAGS="$LDFLAGS"
9675 LDFLAGS="$LDFLAGS -b"
9676 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9677 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9678 # The linker can only warn and ignore the option if not recognized
9679 # So say no if there are warnings
9680 if test -s conftest.err; then
9681 # Append any errors to the config.log.
9682 cat conftest.err 1>&5
9683 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9685 if diff conftest.exp conftest.er2 >/dev/null; then
9686 lt_cv_prog_compiler__b=yes
9687 fi
9688 else
9689 lt_cv_prog_compiler__b=yes
9690 fi
9691 fi
9692 $RM -r conftest*
9693 LDFLAGS="$save_LDFLAGS"
9694
9695fi
9696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9697$as_echo "$lt_cv_prog_compiler__b" >&6; }
9698
9699if test x"$lt_cv_prog_compiler__b" = xyes; then
9700 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9701else
9702 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9703fi
9704
ce2cded5
L
9705 ;;
9706 esac
9707 fi
9708 if test "$with_gnu_ld" = no; then
9709 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9710 hardcode_libdir_separator=:
d7040cdb 9711
ce2cded5
L
9712 case $host_cpu in
9713 hppa*64*|ia64*)
9714 hardcode_direct=no
9715 hardcode_shlibpath_var=no
9716 ;;
9717 *)
9718 hardcode_direct=yes
9719 hardcode_direct_absolute=yes
9720 export_dynamic_flag_spec='${wl}-E'
d7040cdb 9721
ce2cded5
L
9722 # hardcode_minus_L: Not really in the search PATH,
9723 # but as the default location of the library.
9724 hardcode_minus_L=yes
9725 ;;
9726 esac
9727 fi
9728 ;;
9729
9730 irix5* | irix6* | nonstopux*)
9731 if test "$GCC" = yes; then
f2c621e4 9732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
9733 # Try to use the -exported_symbol ld option, if it does not
9734 # work, assume that -exports_file does not work either and
9735 # implicitly export all symbols.
f2c621e4
AS
9736 save_LDFLAGS="$LDFLAGS"
9737 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb 9739/* end confdefs.h. */
f2c621e4 9740int foo(void) {}
ce2cded5 9741_ACEOF
81ecdfbb 9742if ac_fn_c_try_link "$LINENO"; then :
f2c621e4
AS
9743 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'
9744
d7040cdb 9745fi
81ecdfbb
RW
9746rm -f core conftest.err conftest.$ac_objext \
9747 conftest$ac_exeext conftest.$ac_ext
f2c621e4 9748 LDFLAGS="$save_LDFLAGS"
ce2cded5 9749 else
3725885a
RW
9750 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'
9751 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
ce2cded5
L
9752 fi
9753 archive_cmds_need_lc='no'
9754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9755 hardcode_libdir_separator=:
9756 inherit_rpath=yes
9757 link_all_deplibs=yes
9758 ;;
d7040cdb 9759
ce2cded5
L
9760 netbsd*)
9761 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9763 else
9764 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9765 fi
9766 hardcode_libdir_flag_spec='-R$libdir'
9767 hardcode_direct=yes
9768 hardcode_shlibpath_var=no
9769 ;;
d7040cdb 9770
ce2cded5
L
9771 newsos6)
9772 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9773 hardcode_direct=yes
9774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9775 hardcode_libdir_separator=:
9776 hardcode_shlibpath_var=no
9777 ;;
d7040cdb 9778
ce2cded5
L
9779 *nto* | *qnx*)
9780 ;;
d7040cdb 9781
ce2cded5 9782 openbsd*)
718a6fd8
SE
9783 if test -f /usr/libexec/ld.so; then
9784 hardcode_direct=yes
9785 hardcode_shlibpath_var=no
9786 hardcode_direct_absolute=yes
9787 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
ce2cded5 9788 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
718a6fd8 9789 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
ce2cded5 9790 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
718a6fd8
SE
9791 export_dynamic_flag_spec='${wl}-E'
9792 else
9793 case $host_os in
9794 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9796 hardcode_libdir_flag_spec='-R$libdir'
9797 ;;
9798 *)
9799 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9800 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9801 ;;
9802 esac
9803 fi
9804 else
9805 ld_shlibs=no
d7040cdb
SE
9806 fi
9807 ;;
d7040cdb 9808
ce2cded5
L
9809 os2*)
9810 hardcode_libdir_flag_spec='-L$libdir'
9811 hardcode_minus_L=yes
9812 allow_undefined_flag=unsupported
3725885a 9813 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
ce2cded5
L
9814 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9815 ;;
d7040cdb 9816
ce2cded5
L
9817 osf3*)
9818 if test "$GCC" = yes; then
9819 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3725885a 9820 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
9821 else
9822 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9823 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
ce2cded5
L
9824 fi
9825 archive_cmds_need_lc='no'
9826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9827 hardcode_libdir_separator=:
9828 ;;
d7040cdb 9829
ce2cded5
L
9830 osf4* | osf5*) # as osf3* with the addition of -msym flag
9831 if test "$GCC" = yes; then
9832 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
f2c621e4 9833 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
ce2cded5
L
9834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9835 else
9836 allow_undefined_flag=' -expect_unresolved \*'
3725885a 9837 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
ce2cded5 9838 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 9839 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
d7040cdb 9840
ce2cded5
L
9841 # Both c and cxx compiler support -rpath directly
9842 hardcode_libdir_flag_spec='-rpath $libdir'
9843 fi
9844 archive_cmds_need_lc='no'
9845 hardcode_libdir_separator=:
9846 ;;
d7040cdb 9847
ce2cded5
L
9848 solaris*)
9849 no_undefined_flag=' -z defs'
9850 if test "$GCC" = yes; then
9851 wlarc='${wl}'
f2c621e4 9852 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
ce2cded5 9853 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
f2c621e4 9854 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
ce2cded5
L
9855 else
9856 case `$CC -V 2>&1` in
9857 *"Compilers 5.0"*)
9858 wlarc=''
9859 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9860 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9861 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9862 ;;
9863 *)
9864 wlarc='${wl}'
9865 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9866 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9867 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9868 ;;
9869 esac
9870 fi
9871 hardcode_libdir_flag_spec='-R$libdir'
9872 hardcode_shlibpath_var=no
9873 case $host_os in
9874 solaris2.[0-5] | solaris2.[0-5].*) ;;
9875 *)
9876 # The compiler driver will combine and reorder linker options,
9877 # but understands `-z linker_flag'. GCC discards it without `$wl',
9878 # but is careful enough not to reorder.
9879 # Supported since Solaris 2.6 (maybe 2.5.1?)
9880 if test "$GCC" = yes; then
9881 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9882 else
9883 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9884 fi
9885 ;;
9886 esac
9887 link_all_deplibs=yes
d7040cdb 9888 ;;
ce2cded5
L
9889
9890 sunos4*)
9891 if test "x$host_vendor" = xsequent; then
9892 # Use $CC to link under sequent, because it throws in some extra .o
9893 # files that make .init and .fini sections work.
9894 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
d7040cdb 9895 else
ce2cded5 9896 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
d7040cdb 9897 fi
ce2cded5
L
9898 hardcode_libdir_flag_spec='-L$libdir'
9899 hardcode_direct=yes
9900 hardcode_minus_L=yes
9901 hardcode_shlibpath_var=no
d7040cdb 9902 ;;
ce2cded5
L
9903
9904 sysv4)
9905 case $host_vendor in
9906 sni)
9907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9908 hardcode_direct=yes # is this really true???
9909 ;;
9910 siemens)
9911 ## LD is ld it makes a PLAMLIB
9912 ## CC just makes a GrossModule.
9913 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9914 reload_cmds='$CC -r -o $output$reload_objs'
9915 hardcode_direct=no
9916 ;;
9917 motorola)
9918 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9919 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9920 ;;
9921 esac
9922 runpath_var='LD_RUN_PATH'
9923 hardcode_shlibpath_var=no
d7040cdb 9924 ;;
d7040cdb 9925
ce2cded5
L
9926 sysv4.3*)
9927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9928 hardcode_shlibpath_var=no
9929 export_dynamic_flag_spec='-Bexport'
9930 ;;
d7040cdb 9931
ce2cded5
L
9932 sysv4*MP*)
9933 if test -d /usr/nec; then
9934 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9935 hardcode_shlibpath_var=no
9936 runpath_var=LD_RUN_PATH
9937 hardcode_runpath_var=yes
9938 ld_shlibs=yes
9939 fi
9940 ;;
d7040cdb 9941
ce2cded5
L
9942 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9943 no_undefined_flag='${wl}-z,text'
9944 archive_cmds_need_lc=no
9945 hardcode_shlibpath_var=no
9946 runpath_var='LD_RUN_PATH'
d7040cdb 9947
ce2cded5
L
9948 if test "$GCC" = yes; then
9949 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9950 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9951 else
9952 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9953 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9954 fi
9955 ;;
d7040cdb 9956
ce2cded5
L
9957 sysv5* | sco3.2v5* | sco5v6*)
9958 # Note: We can NOT use -z defs as we might desire, because we do not
9959 # link with -lc, and that would cause any symbols used from libc to
9960 # always be unresolved, which means just about no library would
9961 # ever link correctly. If we're not using GNU ld we use -z text
9962 # though, which does catch some bad symbols but isn't as heavy-handed
9963 # as -z defs.
9964 no_undefined_flag='${wl}-z,text'
9965 allow_undefined_flag='${wl}-z,nodefs'
9966 archive_cmds_need_lc=no
9967 hardcode_shlibpath_var=no
9968 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9969 hardcode_libdir_separator=':'
9970 link_all_deplibs=yes
9971 export_dynamic_flag_spec='${wl}-Bexport'
9972 runpath_var='LD_RUN_PATH'
d7040cdb 9973
ce2cded5
L
9974 if test "$GCC" = yes; then
9975 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9976 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9977 else
9978 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9979 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9980 fi
d7040cdb 9981 ;;
d7040cdb 9982
ce2cded5
L
9983 uts4*)
9984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9985 hardcode_libdir_flag_spec='-L$libdir'
9986 hardcode_shlibpath_var=no
9987 ;;
d7040cdb 9988
ce2cded5
L
9989 *)
9990 ld_shlibs=no
9991 ;;
9992 esac
9993
9994 if test x$host_vendor = xsni; then
9995 case $host in
9996 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9997 export_dynamic_flag_spec='${wl}-Blargedynsym'
9998 ;;
9999 esac
d7040cdb 10000 fi
ce2cded5 10001 fi
d7040cdb 10002
81ecdfbb
RW
10003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10004$as_echo "$ld_shlibs" >&6; }
ce2cded5 10005test "$ld_shlibs" = no && can_build_shared=no
d7040cdb 10006
ce2cded5 10007with_gnu_ld=$with_gnu_ld
d7040cdb 10008
d7040cdb 10009
d7040cdb 10010
d7040cdb 10011
d7040cdb 10012
d7040cdb 10013
d7040cdb 10014
d7040cdb 10015
d7040cdb 10016
d7040cdb 10017
d7040cdb 10018
d7040cdb 10019
d7040cdb 10020
d7040cdb 10021
d7040cdb 10022
ce2cded5
L
10023#
10024# Do we need to explicitly link libc?
10025#
10026case "x$archive_cmds_need_lc" in
10027x|xyes)
10028 # Assume -lc should be added
10029 archive_cmds_need_lc=yes
d7040cdb 10030
ce2cded5
L
10031 if test "$enable_shared" = yes && test "$GCC" = yes; then
10032 case $archive_cmds in
10033 *'~'*)
10034 # FIXME: we may have to deal with multi-command sequences.
10035 ;;
10036 '$CC '*)
10037 # Test whether the compiler implicitly links with -lc since on some
10038 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10039 # to ld, don't add -lc before -lgcc.
81ecdfbb
RW
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10041$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 10042if ${lt_cv_archive_cmds_need_lc+:} false; then :
81ecdfbb 10043 $as_echo_n "(cached) " >&6
39144654
RW
10044else
10045 $RM conftest*
10046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
d7040cdb 10047
81ecdfbb 10048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
ce2cded5
L
10049 (eval $ac_compile) 2>&5
10050 ac_status=$?
81ecdfbb
RW
10051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10052 test $ac_status = 0; } 2>conftest.err; then
39144654
RW
10053 soname=conftest
10054 lib=conftest
10055 libobjs=conftest.$ac_objext
10056 deplibs=
10057 wl=$lt_prog_compiler_wl
10058 pic_flag=$lt_prog_compiler_pic
10059 compiler_flags=-v
10060 linker_flags=-v
10061 verstring=
10062 output_objdir=.
10063 libname=conftest
10064 lt_save_allow_undefined_flag=$allow_undefined_flag
10065 allow_undefined_flag=
81ecdfbb 10066 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
ce2cded5
L
10067 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10068 ac_status=$?
81ecdfbb
RW
10069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10070 test $ac_status = 0; }
39144654
RW
10071 then
10072 lt_cv_archive_cmds_need_lc=no
10073 else
10074 lt_cv_archive_cmds_need_lc=yes
10075 fi
10076 allow_undefined_flag=$lt_save_allow_undefined_flag
10077 else
10078 cat conftest.err 1>&5
10079 fi
10080 $RM conftest*
10081
10082fi
81ecdfbb
RW
10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10084$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
39144654 10085 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
ce2cded5
L
10086 ;;
10087 esac
d7040cdb 10088 fi
d7040cdb 10089 ;;
ce2cded5 10090esac
d7040cdb 10091
d7040cdb 10092
d7040cdb 10093
d7040cdb 10094
d7040cdb 10095
d7040cdb 10096
d7040cdb 10097
d7040cdb
SE
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
d7040cdb 10185
d7040cdb 10186
d7040cdb
SE
10187
10188
10189
10190
10191
10192
d7040cdb 10193
d7040cdb 10194
d7040cdb 10195
d7040cdb 10196
d7040cdb 10197
d7040cdb 10198
d7040cdb 10199
d7040cdb 10200
d7040cdb 10201
d7040cdb 10202
d7040cdb 10203
d7040cdb 10204
d7040cdb 10205
d7040cdb 10206
d7040cdb 10207
d7040cdb 10208
d7040cdb 10209
d7040cdb 10210
d7040cdb 10211
d7040cdb 10212
d7040cdb 10213
d7040cdb 10214
d7040cdb 10215
ce2cded5
L
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
81ecdfbb
RW
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10249$as_echo_n "checking dynamic linker characteristics... " >&6; }
718a6fd8
SE
10250
10251if test "$GCC" = yes; then
ce2cded5
L
10252 case $host_os in
10253 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10254 *) lt_awk_arg="/^libraries:/" ;;
10255 esac
3725885a
RW
10256 case $host_os in
10257 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10258 *) lt_sed_strip_eq="s,=/,/,g" ;;
10259 esac
10260 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10261 case $lt_search_path_spec in
10262 *\;*)
ce2cded5
L
10263 # if the path contains ";" then we assume it to be the separator
10264 # otherwise default to the standard path separator (i.e. ":") - it is
10265 # assumed that no part of a normal pathname contains ";" but that should
10266 # okay in the real world where ";" in dirpaths is itself problematic.
3725885a
RW
10267 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10268 ;;
10269 *)
10270 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10271 ;;
10272 esac
ce2cded5
L
10273 # Ok, now we have the path, separated by spaces, we can step through it
10274 # and add multilib dir if necessary.
10275 lt_tmp_lt_search_path_spec=
10276 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10277 for lt_sys_path in $lt_search_path_spec; do
10278 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10279 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10280 else
10281 test -d "$lt_sys_path" && \
10282 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10283 fi
10284 done
3725885a 10285 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
ce2cded5
L
10286BEGIN {RS=" "; FS="/|\n";} {
10287 lt_foo="";
10288 lt_count=0;
10289 for (lt_i = NF; lt_i > 0; lt_i--) {
10290 if ($lt_i != "" && $lt_i != ".") {
10291 if ($lt_i == "..") {
10292 lt_count++;
10293 } else {
10294 if (lt_count == 0) {
10295 lt_foo="/" $lt_i lt_foo;
10296 } else {
10297 lt_count--;
10298 }
10299 }
10300 }
10301 }
10302 if (lt_foo != "") { lt_freq[lt_foo]++; }
10303 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10304}'`
3725885a
RW
10305 # AWK program above erroneously prepends '/' to C:/dos/paths
10306 # for these hosts.
10307 case $host_os in
10308 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10309 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10310 esac
10311 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
d7040cdb 10312else
ce2cded5
L
10313 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10314fi
10315library_names_spec=
10316libname_spec='lib$name'
10317soname_spec=
10318shrext_cmds=".so"
10319postinstall_cmds=
10320postuninstall_cmds=
10321finish_cmds=
10322finish_eval=
10323shlibpath_var=
10324shlibpath_overrides_runpath=unknown
10325version_type=none
10326dynamic_linker="$host_os ld.so"
10327sys_lib_dlsearch_path_spec="/lib /usr/lib"
10328need_lib_prefix=unknown
10329hardcode_into_libs=no
10330
10331# when you set need_version to no, make sure it does not cause -set_version
10332# flags to be left without arguments
10333need_version=unknown
10334
10335case $host_os in
10336aix3*)
10337 version_type=linux
10338 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10339 shlibpath_var=LIBPATH
10340
10341 # AIX 3 has no versioning support, so we append a major version to the name.
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 ;;
10344
50e7d84b 10345aix[4-9]*)
ce2cded5
L
10346 version_type=linux
10347 need_lib_prefix=no
10348 need_version=no
10349 hardcode_into_libs=yes
10350 if test "$host_cpu" = ia64; then
10351 # AIX 5 supports IA64
10352 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10353 shlibpath_var=LD_LIBRARY_PATH
10354 else
10355 # With GCC up to 2.95.x, collect2 would create an import file
10356 # for dependence libraries. The import file would start with
10357 # the line `#! .'. This would cause the generated library to
10358 # depend on `.', always an invalid library. This was fixed in
10359 # development snapshots of GCC prior to 3.0.
10360 case $host_os in
10361 aix4 | aix4.[01] | aix4.[01].*)
10362 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10363 echo ' yes '
10364 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10365 :
10366 else
10367 can_build_shared=no
10368 fi
10369 ;;
10370 esac
10371 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10372 # soname into executable. Probably we can add versioning support to
10373 # collect2, so additional links can be useful in future.
10374 if test "$aix_use_runtimelinking" = yes; then
10375 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10376 # instead of lib<name>.a to let people know that these are not
10377 # typical AIX shared libraries.
10378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10379 else
10380 # We preserve .a as extension for shared libraries through AIX4.2
10381 # and later when we are not doing run time linking.
10382 library_names_spec='${libname}${release}.a $libname.a'
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 fi
10385 shlibpath_var=LIBPATH
10386 fi
10387 ;;
10388
10389amigaos*)
718a6fd8
SE
10390 case $host_cpu in
10391 powerpc)
10392 # Since July 2007 AmigaOS4 officially supports .so libraries.
10393 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10395 ;;
10396 m68k)
ce2cded5
L
10397 library_names_spec='$libname.ixlibrary $libname.a'
10398 # Create ${libname}_ixlibrary.a entries in /sys/libs.
3725885a 10399 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
10400 ;;
10401 esac
ce2cded5
L
10402 ;;
10403
10404beos*)
10405 library_names_spec='${libname}${shared_ext}'
10406 dynamic_linker="$host_os ld.so"
10407 shlibpath_var=LIBRARY_PATH
10408 ;;
10409
10410bsdi[45]*)
10411 version_type=linux
10412 need_version=no
10413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10414 soname_spec='${libname}${release}${shared_ext}$major'
10415 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10418 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10419 # the default ld.so.conf also contains /usr/contrib/lib and
10420 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10421 # libtool to hard-code these into programs
10422 ;;
10423
718a6fd8 10424cygwin* | mingw* | pw32* | cegcc*)
ce2cded5
L
10425 version_type=windows
10426 shrext_cmds=".dll"
10427 need_version=no
10428 need_lib_prefix=no
10429
f2c621e4
AS
10430 case $GCC,$host_os in
10431 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
ce2cded5
L
10432 library_names_spec='$libname.dll.a'
10433 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10434 postinstall_cmds='base_file=`basename \${file}`~
10435 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10436 dldir=$destdir/`dirname \$dlpath`~
10437 test -d \$dldir || mkdir -p \$dldir~
10438 $install_prog $dir/$dlname \$dldir/$dlname~
10439 chmod a+x \$dldir/$dlname~
10440 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10441 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10442 fi'
10443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10444 dlpath=$dir/\$dldll~
10445 $RM \$dlpath'
10446 shlibpath_overrides_runpath=yes
10447
10448 case $host_os in
10449 cygwin*)
10450 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10451 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
3725885a
RW
10452
10453 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
ce2cded5 10454 ;;
718a6fd8 10455 mingw* | cegcc*)
ce2cded5
L
10456 # MinGW DLLs use traditional 'lib' prefix
10457 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
ce2cded5
L
10458 ;;
10459 pw32*)
10460 # pw32 DLLs use 'pw' prefix rather than 'lib'
10461 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10462 ;;
10463 esac
10464 ;;
10465
10466 *)
10467 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10468 ;;
10469 esac
f2c621e4 10470 dynamic_linker='Win32 ld.exe'
ce2cded5
L
10471 # FIXME: first we should search . and the directory the executable is in
10472 shlibpath_var=PATH
10473 ;;
10474
10475darwin* | rhapsody*)
10476 dynamic_linker="$host_os dyld"
10477 version_type=darwin
10478 need_lib_prefix=no
10479 need_version=no
10480 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10481 soname_spec='${libname}${release}${major}$shared_ext'
10482 shlibpath_overrides_runpath=yes
10483 shlibpath_var=DYLD_LIBRARY_PATH
10484 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10485
10486 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10487 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10488 ;;
10489
10490dgux*)
10491 version_type=linux
10492 need_lib_prefix=no
10493 need_version=no
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 shlibpath_var=LD_LIBRARY_PATH
10497 ;;
10498
ce2cded5
L
10499freebsd* | dragonfly*)
10500 # DragonFly does not have aout. When/if they implement a new
10501 # versioning mechanism, adjust this.
10502 if test -x /usr/bin/objformat; then
10503 objformat=`/usr/bin/objformat`
10504 else
10505 case $host_os in
6d2920c8 10506 freebsd[23].*) objformat=aout ;;
ce2cded5
L
10507 *) objformat=elf ;;
10508 esac
10509 fi
10510 version_type=freebsd-$objformat
10511 case $version_type in
10512 freebsd-elf*)
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10514 need_version=no
10515 need_lib_prefix=no
10516 ;;
10517 freebsd-*)
10518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10519 need_version=yes
10520 ;;
10521 esac
10522 shlibpath_var=LD_LIBRARY_PATH
10523 case $host_os in
6d2920c8 10524 freebsd2.*)
ce2cded5
L
10525 shlibpath_overrides_runpath=yes
10526 ;;
10527 freebsd3.[01]* | freebsdelf3.[01]*)
10528 shlibpath_overrides_runpath=yes
10529 hardcode_into_libs=yes
10530 ;;
10531 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10532 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10533 shlibpath_overrides_runpath=no
10534 hardcode_into_libs=yes
10535 ;;
10536 *) # from 4.6 on, and DragonFly
10537 shlibpath_overrides_runpath=yes
10538 hardcode_into_libs=yes
10539 ;;
10540 esac
10541 ;;
10542
10543gnu*)
10544 version_type=linux
10545 need_lib_prefix=no
10546 need_version=no
10547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10548 soname_spec='${libname}${release}${shared_ext}$major'
10549 shlibpath_var=LD_LIBRARY_PATH
10550 hardcode_into_libs=yes
10551 ;;
10552
3725885a
RW
10553haiku*)
10554 version_type=linux
10555 need_lib_prefix=no
10556 need_version=no
10557 dynamic_linker="$host_os runtime_loader"
10558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10559 soname_spec='${libname}${release}${shared_ext}$major'
10560 shlibpath_var=LIBRARY_PATH
10561 shlibpath_overrides_runpath=yes
f2c621e4 10562 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
3725885a
RW
10563 hardcode_into_libs=yes
10564 ;;
10565
ce2cded5
L
10566hpux9* | hpux10* | hpux11*)
10567 # Give a soname corresponding to the major version so that dld.sl refuses to
10568 # link against other versions.
10569 version_type=sunos
10570 need_lib_prefix=no
10571 need_version=no
10572 case $host_cpu in
10573 ia64*)
10574 shrext_cmds='.so'
10575 hardcode_into_libs=yes
10576 dynamic_linker="$host_os dld.so"
10577 shlibpath_var=LD_LIBRARY_PATH
10578 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580 soname_spec='${libname}${release}${shared_ext}$major'
10581 if test "X$HPUX_IA64_MODE" = X32; then
10582 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10583 else
10584 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10585 fi
10586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10587 ;;
10588 hppa*64*)
10589 shrext_cmds='.sl'
10590 hardcode_into_libs=yes
10591 dynamic_linker="$host_os dld.sl"
10592 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10593 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10595 soname_spec='${libname}${release}${shared_ext}$major'
10596 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10597 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10598 ;;
10599 *)
10600 shrext_cmds='.sl'
10601 dynamic_linker="$host_os dld.sl"
10602 shlibpath_var=SHLIB_PATH
10603 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10605 soname_spec='${libname}${release}${shared_ext}$major'
10606 ;;
10607 esac
3725885a 10608 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
ce2cded5 10609 postinstall_cmds='chmod 555 $lib'
3725885a
RW
10610 # or fails outright, so override atomically:
10611 install_override_mode=555
ce2cded5
L
10612 ;;
10613
10614interix[3-9]*)
10615 version_type=linux
10616 need_lib_prefix=no
10617 need_version=no
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 shlibpath_overrides_runpath=no
10623 hardcode_into_libs=yes
10624 ;;
10625
10626irix5* | irix6* | nonstopux*)
10627 case $host_os in
10628 nonstopux*) version_type=nonstopux ;;
10629 *)
10630 if test "$lt_cv_prog_gnu_ld" = yes; then
10631 version_type=linux
10632 else
10633 version_type=irix
10634 fi ;;
10635 esac
10636 need_lib_prefix=no
10637 need_version=no
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10640 case $host_os in
10641 irix5* | nonstopux*)
10642 libsuff= shlibsuff=
10643 ;;
10644 *)
10645 case $LD in # libtool.m4 will add one of these switches to LD
10646 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10647 libsuff= shlibsuff= libmagic=32-bit;;
10648 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10649 libsuff=32 shlibsuff=N32 libmagic=N32;;
10650 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10651 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10652 *) libsuff= shlibsuff= libmagic=never-match;;
10653 esac
10654 ;;
10655 esac
10656 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10657 shlibpath_overrides_runpath=no
10658 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10659 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10660 hardcode_into_libs=yes
10661 ;;
d7040cdb 10662
ce2cded5
L
10663# No shared lib support for Linux oldld, aout, or coff.
10664linux*oldld* | linux*aout* | linux*coff*)
10665 dynamic_linker=no
10666 ;;
10667
10668# This must be Linux ELF.
58e24671 10669linux* | k*bsd*-gnu | kopensolaris*-gnu)
ce2cded5
L
10670 version_type=linux
10671 need_lib_prefix=no
10672 need_version=no
10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10674 soname_spec='${libname}${release}${shared_ext}$major'
10675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10676 shlibpath_var=LD_LIBRARY_PATH
10677 shlibpath_overrides_runpath=no
39144654 10678
ce2cded5 10679 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10680 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
81ecdfbb 10681 $as_echo_n "(cached) " >&6
39144654
RW
10682else
10683 lt_cv_shlibpath_overrides_runpath=no
10684 save_LDFLAGS=$LDFLAGS
10685 save_libdir=$libdir
10686 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10687 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
81ecdfbb 10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb
SE
10689/* end confdefs.h. */
10690
d7040cdb
SE
10691int
10692main ()
10693{
ce2cded5 10694
d7040cdb
SE
10695 ;
10696 return 0;
10697}
10698_ACEOF
81ecdfbb
RW
10699if ac_fn_c_try_link "$LINENO"; then :
10700 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
39144654 10701 lt_cv_shlibpath_overrides_runpath=yes
ce2cded5 10702fi
ce2cded5 10703fi
81ecdfbb
RW
10704rm -f core conftest.err conftest.$ac_objext \
10705 conftest$ac_exeext conftest.$ac_ext
39144654
RW
10706 LDFLAGS=$save_LDFLAGS
10707 libdir=$save_libdir
10708
10709fi
10710
10711 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
ce2cded5
L
10712
10713 # This implies no fast_install, which is unacceptable.
10714 # Some rework will be needed to allow for fast_install
10715 # before this can be enabled.
10716 hardcode_into_libs=yes
10717
10718 # Append ld.so.conf contents to the search path
10719 if test -f /etc/ld.so.conf; then
3725885a 10720 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 10721 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
ce2cded5
L
10722 fi
10723
10724 # We used to test for /lib/ld.so.1 and disable shared libraries on
10725 # powerpc, because MkLinux only supported shared libraries with the
10726 # GNU dynamic linker. Since this was broken with cross compilers,
10727 # most powerpc-linux boxes support dynamic linking these days and
10728 # people can always --disable-shared, the test was removed, and we
10729 # assume the GNU/Linux dynamic linker is in use.
10730 dynamic_linker='GNU/Linux ld.so'
10731 ;;
10732
10733netbsd*)
10734 version_type=sunos
10735 need_lib_prefix=no
10736 need_version=no
10737 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10740 dynamic_linker='NetBSD (a.out) ld.so'
10741 else
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10743 soname_spec='${libname}${release}${shared_ext}$major'
10744 dynamic_linker='NetBSD ld.elf_so'
10745 fi
10746 shlibpath_var=LD_LIBRARY_PATH
10747 shlibpath_overrides_runpath=yes
10748 hardcode_into_libs=yes
10749 ;;
10750
10751newsos6)
10752 version_type=linux
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10754 shlibpath_var=LD_LIBRARY_PATH
10755 shlibpath_overrides_runpath=yes
10756 ;;
10757
10758*nto* | *qnx*)
10759 version_type=qnx
10760 need_lib_prefix=no
10761 need_version=no
10762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 shlibpath_var=LD_LIBRARY_PATH
10765 shlibpath_overrides_runpath=no
10766 hardcode_into_libs=yes
10767 dynamic_linker='ldqnx.so'
10768 ;;
10769
10770openbsd*)
10771 version_type=sunos
10772 sys_lib_dlsearch_path_spec="/usr/lib"
10773 need_lib_prefix=no
10774 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10775 case $host_os in
10776 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10777 *) need_version=no ;;
10778 esac
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10781 shlibpath_var=LD_LIBRARY_PATH
10782 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10783 case $host_os in
10784 openbsd2.[89] | openbsd2.[89].*)
10785 shlibpath_overrides_runpath=no
10786 ;;
10787 *)
10788 shlibpath_overrides_runpath=yes
10789 ;;
10790 esac
10791 else
10792 shlibpath_overrides_runpath=yes
10793 fi
10794 ;;
10795
10796os2*)
10797 libname_spec='$name'
10798 shrext_cmds=".dll"
10799 need_lib_prefix=no
10800 library_names_spec='$libname${shared_ext} $libname.a'
10801 dynamic_linker='OS/2 ld.exe'
10802 shlibpath_var=LIBPATH
10803 ;;
10804
10805osf3* | osf4* | osf5*)
10806 version_type=osf
10807 need_lib_prefix=no
10808 need_version=no
10809 soname_spec='${libname}${release}${shared_ext}$major'
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811 shlibpath_var=LD_LIBRARY_PATH
10812 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10813 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10814 ;;
10815
10816rdos*)
10817 dynamic_linker=no
10818 ;;
10819
10820solaris*)
10821 version_type=linux
10822 need_lib_prefix=no
10823 need_version=no
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825 soname_spec='${libname}${release}${shared_ext}$major'
10826 shlibpath_var=LD_LIBRARY_PATH
10827 shlibpath_overrides_runpath=yes
10828 hardcode_into_libs=yes
10829 # ldd complains unless libraries are executable
10830 postinstall_cmds='chmod +x $lib'
10831 ;;
10832
10833sunos4*)
10834 version_type=sunos
10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10836 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10837 shlibpath_var=LD_LIBRARY_PATH
10838 shlibpath_overrides_runpath=yes
10839 if test "$with_gnu_ld" = yes; then
10840 need_lib_prefix=no
10841 fi
10842 need_version=yes
10843 ;;
10844
10845sysv4 | sysv4.3*)
10846 version_type=linux
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848 soname_spec='${libname}${release}${shared_ext}$major'
10849 shlibpath_var=LD_LIBRARY_PATH
10850 case $host_vendor in
10851 sni)
10852 shlibpath_overrides_runpath=no
10853 need_lib_prefix=no
10854 runpath_var=LD_RUN_PATH
10855 ;;
10856 siemens)
10857 need_lib_prefix=no
10858 ;;
10859 motorola)
10860 need_lib_prefix=no
10861 need_version=no
10862 shlibpath_overrides_runpath=no
10863 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10864 ;;
10865 esac
10866 ;;
10867
10868sysv4*MP*)
10869 if test -d /usr/nec ;then
10870 version_type=linux
10871 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10872 soname_spec='$libname${shared_ext}.$major'
10873 shlibpath_var=LD_LIBRARY_PATH
10874 fi
10875 ;;
10876
10877sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10878 version_type=freebsd-elf
10879 need_lib_prefix=no
10880 need_version=no
10881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10882 soname_spec='${libname}${release}${shared_ext}$major'
10883 shlibpath_var=LD_LIBRARY_PATH
10884 shlibpath_overrides_runpath=yes
10885 hardcode_into_libs=yes
10886 if test "$with_gnu_ld" = yes; then
10887 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10888 else
10889 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10890 case $host_os in
10891 sco3.2v5*)
10892 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10893 ;;
10894 esac
10895 fi
10896 sys_lib_dlsearch_path_spec='/usr/lib'
10897 ;;
10898
10899tpf*)
10900 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10901 version_type=linux
10902 need_lib_prefix=no
10903 need_version=no
718a6fd8 10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
ce2cded5
L
10905 shlibpath_var=LD_LIBRARY_PATH
10906 shlibpath_overrides_runpath=no
10907 hardcode_into_libs=yes
10908 ;;
d7040cdb 10909
ce2cded5
L
10910uts4*)
10911 version_type=linux
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10913 soname_spec='${libname}${release}${shared_ext}$major'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 ;;
d7040cdb 10916
ce2cded5
L
10917*)
10918 dynamic_linker=no
10919 ;;
10920esac
81ecdfbb
RW
10921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10922$as_echo "$dynamic_linker" >&6; }
ce2cded5
L
10923test "$dynamic_linker" = no && can_build_shared=no
10924
10925variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10926if test "$GCC" = yes; then
10927 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
d7040cdb 10928fi
d7040cdb 10929
718a6fd8
SE
10930if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10931 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10932fi
10933if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10934 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10935fi
10936
d7040cdb 10937
d7040cdb
SE
10938
10939
d7040cdb
SE
10940
10941
d7040cdb
SE
10942
10943
d7040cdb
SE
10944
10945
d7040cdb
SE
10946
10947
d7040cdb 10948
d7040cdb 10949
d7040cdb 10950
d7040cdb 10951
d7040cdb 10952
d7040cdb 10953
d7040cdb 10954
d7040cdb 10955
d7040cdb 10956
d7040cdb 10957
d7040cdb 10958
d7040cdb 10959
d7040cdb 10960
d7040cdb 10961
d7040cdb
SE
10962
10963
d7040cdb 10964
d7040cdb 10965
d7040cdb 10966
d7040cdb 10967
d7040cdb 10968
d7040cdb 10969
d7040cdb 10970
d7040cdb 10971
d7040cdb 10972
d7040cdb
SE
10973
10974
d7040cdb 10975
d7040cdb 10976
d7040cdb 10977
d7040cdb
SE
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
d7040cdb
SE
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
d7040cdb 11007
d7040cdb 11008
d7040cdb 11009
d7040cdb 11010
d7040cdb
SE
11011
11012
11013
11014
ce2cded5
L
11015
11016
3725885a
RW
11017
11018
11019
11020
11021
ce2cded5
L
11022
11023
11024
11025
11026
11027
81ecdfbb
RW
11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11029$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
ce2cded5
L
11030hardcode_action=
11031if test -n "$hardcode_libdir_flag_spec" ||
11032 test -n "$runpath_var" ||
11033 test "X$hardcode_automatic" = "Xyes" ; then
11034
11035 # We can hardcode non-existent directories.
11036 if test "$hardcode_direct" != no &&
11037 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11038 # have to relink, otherwise we might link with an installed library
11039 # when we should be linking with a yet-to-be-installed one
11040 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11041 test "$hardcode_minus_L" != no; then
11042 # Linking always hardcodes the temporary library directory.
11043 hardcode_action=relink
11044 else
11045 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11046 hardcode_action=immediate
11047 fi
11048else
11049 # We cannot hardcode anything, or else we can only hardcode existing
11050 # directories.
11051 hardcode_action=unsupported
11052fi
81ecdfbb
RW
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11054$as_echo "$hardcode_action" >&6; }
ce2cded5
L
11055
11056if test "$hardcode_action" = relink ||
11057 test "$inherit_rpath" = yes; then
11058 # Fast installation is not supported
11059 enable_fast_install=no
11060elif test "$shlibpath_overrides_runpath" = yes ||
11061 test "$enable_shared" = no; then
11062 # Fast installation is not necessary
11063 enable_fast_install=needless
d7040cdb 11064fi
d7040cdb 11065
d7040cdb
SE
11066
11067
11068
11069
11070
ce2cded5
L
11071 if test "x$enable_dlopen" != xyes; then
11072 enable_dlopen=unknown
11073 enable_dlopen_self=unknown
11074 enable_dlopen_self_static=unknown
11075else
11076 lt_cv_dlopen=no
11077 lt_cv_dlopen_libs=
11078
11079 case $host_os in
11080 beos*)
11081 lt_cv_dlopen="load_add_on"
11082 lt_cv_dlopen_libs=
11083 lt_cv_dlopen_self=yes
11084 ;;
d7040cdb 11085
718a6fd8 11086 mingw* | pw32* | cegcc*)
ce2cded5
L
11087 lt_cv_dlopen="LoadLibrary"
11088 lt_cv_dlopen_libs=
11089 ;;
d7040cdb 11090
ce2cded5
L
11091 cygwin*)
11092 lt_cv_dlopen="dlopen"
11093 lt_cv_dlopen_libs=
11094 ;;
d7040cdb 11095
ce2cded5
L
11096 darwin*)
11097 # if libdl is installed we need to link against it
81ecdfbb
RW
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11099$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11100if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11101 $as_echo_n "(cached) " >&6
ce2cded5
L
11102else
11103 ac_check_lib_save_LIBS=$LIBS
11104LIBS="-ldl $LIBS"
81ecdfbb 11105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11106/* end confdefs.h. */
d7040cdb 11107
81ecdfbb
RW
11108/* Override any GCC internal prototype to avoid an error.
11109 Use char because int might match the return type of a GCC
11110 builtin and then its argument prototype would still apply. */
ce2cded5
L
11111#ifdef __cplusplus
11112extern "C"
11113#endif
ce2cded5
L
11114char dlopen ();
11115int
11116main ()
11117{
81ecdfbb 11118return dlopen ();
ce2cded5
L
11119 ;
11120 return 0;
11121}
11122_ACEOF
81ecdfbb 11123if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11124 ac_cv_lib_dl_dlopen=yes
11125else
81ecdfbb 11126 ac_cv_lib_dl_dlopen=no
ce2cded5 11127fi
81ecdfbb
RW
11128rm -f core conftest.err conftest.$ac_objext \
11129 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11130LIBS=$ac_check_lib_save_LIBS
11131fi
81ecdfbb
RW
11132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11133$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11134if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5
L
11135 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11136else
d7040cdb 11137
ce2cded5
L
11138 lt_cv_dlopen="dyld"
11139 lt_cv_dlopen_libs=
11140 lt_cv_dlopen_self=yes
d7040cdb 11141
ce2cded5 11142fi
d7040cdb 11143
ce2cded5 11144 ;;
d7040cdb 11145
ce2cded5 11146 *)
81ecdfbb 11147 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 11148if test "x$ac_cv_func_shl_load" = xyes; then :
ce2cded5
L
11149 lt_cv_dlopen="shl_load"
11150else
81ecdfbb
RW
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11152$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 11153if ${ac_cv_lib_dld_shl_load+:} false; then :
81ecdfbb 11154 $as_echo_n "(cached) " >&6
ce2cded5
L
11155else
11156 ac_check_lib_save_LIBS=$LIBS
11157LIBS="-ldld $LIBS"
81ecdfbb 11158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 11159/* end confdefs.h. */
d7040cdb 11160
81ecdfbb
RW
11161/* Override any GCC internal prototype to avoid an error.
11162 Use char because int might match the return type of a GCC
11163 builtin and then its argument prototype would still apply. */
ce2cded5
L
11164#ifdef __cplusplus
11165extern "C"
11166#endif
ce2cded5
L
11167char shl_load ();
11168int
11169main ()
11170{
81ecdfbb 11171return shl_load ();
ce2cded5
L
11172 ;
11173 return 0;
11174}
d7040cdb 11175_ACEOF
81ecdfbb 11176if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11177 ac_cv_lib_dld_shl_load=yes
11178else
81ecdfbb 11179 ac_cv_lib_dld_shl_load=no
d7040cdb 11180fi
81ecdfbb
RW
11181rm -f core conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11183LIBS=$ac_check_lib_save_LIBS
11184fi
81ecdfbb
RW
11185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11186$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 11187if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
718a6fd8 11188 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
ce2cded5 11189else
81ecdfbb 11190 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 11191if test "x$ac_cv_func_dlopen" = xyes; then :
ce2cded5
L
11192 lt_cv_dlopen="dlopen"
11193else
81ecdfbb
RW
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11195$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 11196if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 11197 $as_echo_n "(cached) " >&6
d7040cdb 11198else
ce2cded5
L
11199 ac_check_lib_save_LIBS=$LIBS
11200LIBS="-ldl $LIBS"
81ecdfbb 11201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11202/* end confdefs.h. */
d7040cdb 11203
81ecdfbb
RW
11204/* Override any GCC internal prototype to avoid an error.
11205 Use char because int might match the return type of a GCC
11206 builtin and then its argument prototype would still apply. */
ce2cded5
L
11207#ifdef __cplusplus
11208extern "C"
11209#endif
ce2cded5 11210char dlopen ();
d7040cdb
SE
11211int
11212main ()
11213{
81ecdfbb 11214return dlopen ();
d7040cdb
SE
11215 ;
11216 return 0;
11217}
11218_ACEOF
81ecdfbb 11219if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11220 ac_cv_lib_dl_dlopen=yes
11221else
81ecdfbb 11222 ac_cv_lib_dl_dlopen=no
ce2cded5 11223fi
81ecdfbb
RW
11224rm -f core conftest.err conftest.$ac_objext \
11225 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11226LIBS=$ac_check_lib_save_LIBS
11227fi
81ecdfbb
RW
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11229$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 11230if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
ce2cded5
L
11231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11232else
81ecdfbb
RW
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11234$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 11235if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 11236 $as_echo_n "(cached) " >&6
ce2cded5
L
11237else
11238 ac_check_lib_save_LIBS=$LIBS
11239LIBS="-lsvld $LIBS"
81ecdfbb 11240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11241/* end confdefs.h. */
d7040cdb 11242
81ecdfbb
RW
11243/* Override any GCC internal prototype to avoid an error.
11244 Use char because int might match the return type of a GCC
11245 builtin and then its argument prototype would still apply. */
ce2cded5
L
11246#ifdef __cplusplus
11247extern "C"
11248#endif
ce2cded5 11249char dlopen ();
d7040cdb
SE
11250int
11251main ()
11252{
81ecdfbb 11253return dlopen ();
d7040cdb
SE
11254 ;
11255 return 0;
11256}
11257_ACEOF
81ecdfbb 11258if ac_fn_c_try_link "$LINENO"; then :
ce2cded5 11259 ac_cv_lib_svld_dlopen=yes
d7040cdb 11260else
81ecdfbb 11261 ac_cv_lib_svld_dlopen=no
d7040cdb 11262fi
81ecdfbb
RW
11263rm -f core conftest.err conftest.$ac_objext \
11264 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11265LIBS=$ac_check_lib_save_LIBS
11266fi
81ecdfbb
RW
11267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11268$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 11269if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
ce2cded5
L
11270 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11271else
81ecdfbb
RW
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11273$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 11274if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb 11275 $as_echo_n "(cached) " >&6
d7040cdb 11276else
ce2cded5
L
11277 ac_check_lib_save_LIBS=$LIBS
11278LIBS="-ldld $LIBS"
81ecdfbb 11279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7040cdb 11280/* end confdefs.h. */
ce2cded5 11281
81ecdfbb
RW
11282/* Override any GCC internal prototype to avoid an error.
11283 Use char because int might match the return type of a GCC
11284 builtin and then its argument prototype would still apply. */
ce2cded5
L
11285#ifdef __cplusplus
11286extern "C"
11287#endif
ce2cded5 11288char dld_link ();
d7040cdb
SE
11289int
11290main ()
11291{
81ecdfbb 11292return dld_link ();
d7040cdb
SE
11293 ;
11294 return 0;
11295}
11296_ACEOF
81ecdfbb 11297if ac_fn_c_try_link "$LINENO"; then :
ce2cded5
L
11298 ac_cv_lib_dld_dld_link=yes
11299else
81ecdfbb 11300 ac_cv_lib_dld_dld_link=no
d7040cdb 11301fi
81ecdfbb
RW
11302rm -f core conftest.err conftest.$ac_objext \
11303 conftest$ac_exeext conftest.$ac_ext
ce2cded5
L
11304LIBS=$ac_check_lib_save_LIBS
11305fi
81ecdfbb
RW
11306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11307$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 11308if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
718a6fd8 11309 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
ce2cded5
L
11310fi
11311
11312
11313fi
11314
11315
11316fi
11317
11318
11319fi
11320
11321
11322fi
11323
11324
11325fi
11326
11327 ;;
11328 esac
11329
11330 if test "x$lt_cv_dlopen" != xno; then
11331 enable_dlopen=yes
d7040cdb 11332 else
ce2cded5 11333 enable_dlopen=no
d7040cdb 11334 fi
ce2cded5
L
11335
11336 case $lt_cv_dlopen in
11337 dlopen)
11338 save_CPPFLAGS="$CPPFLAGS"
11339 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11340
11341 save_LDFLAGS="$LDFLAGS"
11342 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11343
11344 save_LIBS="$LIBS"
11345 LIBS="$lt_cv_dlopen_libs $LIBS"
11346
81ecdfbb
RW
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11348$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 11349if ${lt_cv_dlopen_self+:} false; then :
81ecdfbb 11350 $as_echo_n "(cached) " >&6
d7040cdb 11351else
ce2cded5
L
11352 if test "$cross_compiling" = yes; then :
11353 lt_cv_dlopen_self=cross
11354else
11355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11356 lt_status=$lt_dlunknown
11357 cat > conftest.$ac_ext <<_LT_EOF
f8861f5d 11358#line 11358 "configure"
ce2cded5
L
11359#include "confdefs.h"
11360
11361#if HAVE_DLFCN_H
11362#include <dlfcn.h>
11363#endif
11364
11365#include <stdio.h>
11366
11367#ifdef RTLD_GLOBAL
11368# define LT_DLGLOBAL RTLD_GLOBAL
11369#else
11370# ifdef DL_GLOBAL
11371# define LT_DLGLOBAL DL_GLOBAL
11372# else
11373# define LT_DLGLOBAL 0
11374# endif
11375#endif
11376
11377/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11378 find out it does not work in some platform. */
11379#ifndef LT_DLLAZY_OR_NOW
11380# ifdef RTLD_LAZY
11381# define LT_DLLAZY_OR_NOW RTLD_LAZY
11382# else
11383# ifdef DL_LAZY
11384# define LT_DLLAZY_OR_NOW DL_LAZY
11385# else
11386# ifdef RTLD_NOW
11387# define LT_DLLAZY_OR_NOW RTLD_NOW
11388# else
11389# ifdef DL_NOW
11390# define LT_DLLAZY_OR_NOW DL_NOW
11391# else
11392# define LT_DLLAZY_OR_NOW 0
11393# endif
11394# endif
11395# endif
11396# endif
11397#endif
11398
3725885a
RW
11399/* When -fvisbility=hidden is used, assume the code has been annotated
11400 correspondingly for the symbols needed. */
11401#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11402void fnord () __attribute__((visibility("default")));
3725885a
RW
11403#endif
11404
f2c621e4 11405void fnord () { int i=42; }
ce2cded5
L
11406int main ()
11407{
11408 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11409 int status = $lt_dlunknown;
11410
11411 if (self)
11412 {
11413 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11414 else
11415 {
11416 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11417 else puts (dlerror ());
11418 }
ce2cded5
L
11419 /* dlclose (self); */
11420 }
11421 else
11422 puts (dlerror ());
11423
718a6fd8 11424 return status;
ce2cded5
L
11425}
11426_LT_EOF
81ecdfbb 11427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
ce2cded5
L
11428 (eval $ac_link) 2>&5
11429 ac_status=$?
81ecdfbb
RW
11430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11431 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11432 (./conftest; exit; ) >&5 2>/dev/null
11433 lt_status=$?
11434 case x$lt_status in
11435 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11436 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11437 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11438 esac
11439 else :
11440 # compilation failed
11441 lt_cv_dlopen_self=no
11442 fi
11443fi
11444rm -fr conftest*
11445
d7040cdb
SE
11446
11447fi
81ecdfbb
RW
11448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11449$as_echo "$lt_cv_dlopen_self" >&6; }
ce2cded5
L
11450
11451 if test "x$lt_cv_dlopen_self" = xyes; then
11452 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
81ecdfbb
RW
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11454$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 11455if ${lt_cv_dlopen_self_static+:} false; then :
81ecdfbb 11456 $as_echo_n "(cached) " >&6
d7040cdb 11457else
ce2cded5
L
11458 if test "$cross_compiling" = yes; then :
11459 lt_cv_dlopen_self_static=cross
11460else
11461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11462 lt_status=$lt_dlunknown
11463 cat > conftest.$ac_ext <<_LT_EOF
f8861f5d 11464#line 11464 "configure"
ce2cded5
L
11465#include "confdefs.h"
11466
11467#if HAVE_DLFCN_H
11468#include <dlfcn.h>
11469#endif
11470
11471#include <stdio.h>
11472
11473#ifdef RTLD_GLOBAL
11474# define LT_DLGLOBAL RTLD_GLOBAL
11475#else
11476# ifdef DL_GLOBAL
11477# define LT_DLGLOBAL DL_GLOBAL
11478# else
11479# define LT_DLGLOBAL 0
11480# endif
11481#endif
11482
11483/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11484 find out it does not work in some platform. */
11485#ifndef LT_DLLAZY_OR_NOW
11486# ifdef RTLD_LAZY
11487# define LT_DLLAZY_OR_NOW RTLD_LAZY
11488# else
11489# ifdef DL_LAZY
11490# define LT_DLLAZY_OR_NOW DL_LAZY
11491# else
11492# ifdef RTLD_NOW
11493# define LT_DLLAZY_OR_NOW RTLD_NOW
11494# else
11495# ifdef DL_NOW
11496# define LT_DLLAZY_OR_NOW DL_NOW
11497# else
11498# define LT_DLLAZY_OR_NOW 0
11499# endif
11500# endif
11501# endif
11502# endif
11503#endif
11504
3725885a
RW
11505/* When -fvisbility=hidden is used, assume the code has been annotated
11506 correspondingly for the symbols needed. */
11507#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
f2c621e4 11508void fnord () __attribute__((visibility("default")));
3725885a
RW
11509#endif
11510
f2c621e4 11511void fnord () { int i=42; }
ce2cded5 11512int main ()
d7040cdb 11513{
ce2cded5
L
11514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11515 int status = $lt_dlunknown;
11516
11517 if (self)
11518 {
11519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
3725885a
RW
11520 else
11521 {
11522 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11523 else puts (dlerror ());
11524 }
ce2cded5
L
11525 /* dlclose (self); */
11526 }
11527 else
11528 puts (dlerror ());
11529
718a6fd8 11530 return status;
d7040cdb 11531}
ce2cded5 11532_LT_EOF
81ecdfbb 11533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
d7040cdb
SE
11534 (eval $ac_link) 2>&5
11535 ac_status=$?
81ecdfbb
RW
11536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11537 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
ce2cded5
L
11538 (./conftest; exit; ) >&5 2>/dev/null
11539 lt_status=$?
11540 case x$lt_status in
11541 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11542 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11543 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11544 esac
11545 else :
11546 # compilation failed
11547 lt_cv_dlopen_self_static=no
11548 fi
d7040cdb 11549fi
ce2cded5
L
11550rm -fr conftest*
11551
11552
d7040cdb 11553fi
81ecdfbb
RW
11554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11555$as_echo "$lt_cv_dlopen_self_static" >&6; }
ce2cded5
L
11556 fi
11557
11558 CPPFLAGS="$save_CPPFLAGS"
11559 LDFLAGS="$save_LDFLAGS"
11560 LIBS="$save_LIBS"
11561 ;;
11562 esac
11563
11564 case $lt_cv_dlopen_self in
11565 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11566 *) enable_dlopen_self=unknown ;;
11567 esac
11568
11569 case $lt_cv_dlopen_self_static in
11570 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11571 *) enable_dlopen_self_static=unknown ;;
11572 esac
d7040cdb 11573fi
d7040cdb 11574
d7040cdb
SE
11575
11576
d7040cdb 11577
d7040cdb 11578
ce2cded5
L
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591striplib=
11592old_striplib=
81ecdfbb
RW
11593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11594$as_echo_n "checking whether stripping libraries is possible... " >&6; }
ce2cded5
L
11595if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11596 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11597 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
81ecdfbb
RW
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11599$as_echo "yes" >&6; }
ce2cded5
L
11600else
11601# FIXME - insert some real tests, host_os isn't really good enough
11602 case $host_os in
11603 darwin*)
11604 if test -n "$STRIP" ; then
11605 striplib="$STRIP -x"
11606 old_striplib="$STRIP -S"
81ecdfbb
RW
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11608$as_echo "yes" >&6; }
ce2cded5 11609 else
81ecdfbb
RW
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11611$as_echo "no" >&6; }
d7040cdb 11612 fi
ce2cded5
L
11613 ;;
11614 *)
81ecdfbb
RW
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11616$as_echo "no" >&6; }
ce2cded5 11617 ;;
d7040cdb 11618 esac
d7040cdb
SE
11619fi
11620
d7040cdb 11621
d7040cdb 11622
d7040cdb 11623
d7040cdb 11624
d7040cdb 11625
d7040cdb 11626
d7040cdb 11627
d7040cdb 11628
d7040cdb 11629
d7040cdb 11630
d7040cdb 11631
ce2cded5 11632 # Report which library types will actually be built
81ecdfbb
RW
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11634$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11636$as_echo "$can_build_shared" >&6; }
d7040cdb 11637
81ecdfbb
RW
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11639$as_echo_n "checking whether to build shared libraries... " >&6; }
ce2cded5 11640 test "$can_build_shared" = "no" && enable_shared=no
d7040cdb 11641
ce2cded5
L
11642 # On AIX, shared libraries and static libraries use the same namespace, and
11643 # are all built from PIC.
11644 case $host_os in
11645 aix3*)
11646 test "$enable_shared" = yes && enable_static=no
11647 if test -n "$RANLIB"; then
11648 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11649 postinstall_cmds='$RANLIB $lib'
11650 fi
11651 ;;
d7040cdb 11652
50e7d84b 11653 aix[4-9]*)
ce2cded5
L
11654 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11655 test "$enable_shared" = yes && enable_static=no
11656 fi
11657 ;;
11658 esac
81ecdfbb
RW
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11660$as_echo "$enable_shared" >&6; }
ce2cded5 11661
81ecdfbb
RW
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11663$as_echo_n "checking whether to build static libraries... " >&6; }
ce2cded5
L
11664 # Make sure either enable_shared or enable_static is yes.
11665 test "$enable_shared" = yes || enable_static=yes
81ecdfbb
RW
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11667$as_echo "$enable_static" >&6; }
d7040cdb 11668
d7040cdb 11669
d7040cdb 11670
d7040cdb 11671
ce2cded5
L
11672fi
11673ac_ext=c
11674ac_cpp='$CPP $CPPFLAGS'
11675ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11676ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11677ac_compiler_gnu=$ac_cv_c_compiler_gnu
d7040cdb 11678
ce2cded5 11679CC="$lt_save_CC"
d7040cdb 11680
d7040cdb 11681
d7040cdb 11682
d7040cdb 11683
d7040cdb 11684
d7040cdb 11685
d7040cdb 11686
d7040cdb 11687
d7040cdb 11688
d7040cdb
SE
11689
11690
d7040cdb
SE
11691
11692
81ecdfbb 11693 ac_config_commands="$ac_config_commands libtool"
d7040cdb
SE
11694
11695
d7040cdb 11696
d7040cdb 11697
ce2cded5 11698# Only expand once:
d7040cdb 11699
d7040cdb 11700
d7040cdb 11701
b879806f
AM
11702# The tests for host and target for $enable_largefile require
11703# canonical names.
11704
11705
11706
11707# As the $enable_largefile decision depends on --enable-plugins we must set it
11708# even in directories otherwise not depending on the $plugins option.
11709
11710
11711 maybe_plugins=no
11712 for ac_header in dlfcn.h
11713do :
11714 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11715"
d0ac1c44 11716if test "x$ac_cv_header_dlfcn_h" = xyes; then :
b879806f
AM
11717 cat >>confdefs.h <<_ACEOF
11718#define HAVE_DLFCN_H 1
11719_ACEOF
11720 maybe_plugins=yes
11721fi
11722
11723done
11724
11725 for ac_header in windows.h
11726do :
11727 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
11728"
d0ac1c44 11729if test "x$ac_cv_header_windows_h" = xyes; then :
b879806f
AM
11730 cat >>confdefs.h <<_ACEOF
11731#define HAVE_WINDOWS_H 1
11732_ACEOF
11733 maybe_plugins=yes
11734fi
11735
11736done
11737
11738
11739 # Check whether --enable-plugins was given.
11740if test "${enable_plugins+set}" = set; then :
11741 enableval=$enable_plugins; case "${enableval}" in
11742 no) plugins=no ;;
11743 *) plugins=yes
11744 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 11745 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
b879806f
AM
11746 fi ;;
11747 esac
11748else
11749 plugins=$maybe_plugins
11750
11751fi
11752
2974be62 11753 if test "$plugins" = "yes"; then
3cba8b6c
L
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
11755$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 11756if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11757 $as_echo_n "(cached) " >&6
11758else
11759 ac_func_search_save_LIBS=$LIBS
11760cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11761/* end confdefs.h. */
11762
11763/* Override any GCC internal prototype to avoid an error.
11764 Use char because int might match the return type of a GCC
11765 builtin and then its argument prototype would still apply. */
11766#ifdef __cplusplus
11767extern "C"
11768#endif
3cba8b6c 11769char dlsym ();
2974be62
AM
11770int
11771main ()
11772{
3cba8b6c 11773return dlsym ();
2974be62
AM
11774 ;
11775 return 0;
11776}
11777_ACEOF
11778for ac_lib in '' dl; do
11779 if test -z "$ac_lib"; then
11780 ac_res="none required"
11781 else
11782 ac_res=-l$ac_lib
11783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11784 fi
11785 if ac_fn_c_try_link "$LINENO"; then :
3cba8b6c 11786 ac_cv_search_dlsym=$ac_res
2974be62
AM
11787fi
11788rm -f core conftest.err conftest.$ac_objext \
11789 conftest$ac_exeext
d0ac1c44 11790 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11791 break
11792fi
11793done
d0ac1c44 11794if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
11795
11796else
3cba8b6c 11797 ac_cv_search_dlsym=no
2974be62
AM
11798fi
11799rm conftest.$ac_ext
11800LIBS=$ac_func_search_save_LIBS
11801fi
3cba8b6c
L
11802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
11803$as_echo "$ac_cv_search_dlsym" >&6; }
11804ac_res=$ac_cv_search_dlsym
2974be62
AM
11805if test "$ac_res" != no; then :
11806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11807
11808fi
11809
11810 fi
b879806f
AM
11811
11812
11813case "${host}" in
11814 sparc-*-solaris*|i[3-7]86-*-solaris*)
11815 # On native 32bit sparc and ia32 solaris, large-file and procfs support
11816 # are mutually exclusive; and without procfs support, the bfd/ elf module
11817 # cannot provide certain routines such as elfcore_write_prpsinfo
11818 # or elfcore_write_prstatus. So unless the user explicitly requested
11819 # large-file support through the --enable-largefile switch, disable
11820 # large-file support in favor of procfs support.
11821 test "${target}" = "${host}" -a "x$plugins" = xno \
11822 && : ${enable_largefile="no"}
11823 ;;
11824esac
11825
11826# Check whether --enable-largefile was given.
11827if test "${enable_largefile+set}" = set; then :
11828 enableval=$enable_largefile;
11829fi
11830
11831if test "$enable_largefile" != no; then
11832
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11834$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
d0ac1c44 11835if ${ac_cv_sys_largefile_CC+:} false; then :
b879806f
AM
11836 $as_echo_n "(cached) " >&6
11837else
11838 ac_cv_sys_largefile_CC=no
11839 if test "$GCC" != yes; then
11840 ac_save_CC=$CC
11841 while :; do
11842 # IRIX 6.2 and later do not support large files by default,
11843 # so use the C compiler's -n32 option if that helps.
11844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845/* end confdefs.h. */
11846#include <sys/types.h>
11847 /* Check that off_t can represent 2**63 - 1 correctly.
11848 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11849 since some C++ compilers masquerading as C compilers
11850 incorrectly reject 9223372036854775807. */
f8861f5d 11851#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
b879806f
AM
11852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11853 && LARGE_OFF_T % 2147483647 == 1)
11854 ? 1 : -1];
11855int
11856main ()
11857{
11858
11859 ;
11860 return 0;
11861}
11862_ACEOF
11863 if ac_fn_c_try_compile "$LINENO"; then :
11864 break
11865fi
11866rm -f core conftest.err conftest.$ac_objext
11867 CC="$CC -n32"
11868 if ac_fn_c_try_compile "$LINENO"; then :
11869 ac_cv_sys_largefile_CC=' -n32'; break
11870fi
11871rm -f core conftest.err conftest.$ac_objext
11872 break
11873 done
11874 CC=$ac_save_CC
11875 rm -f conftest.$ac_ext
11876 fi
11877fi
11878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11879$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11880 if test "$ac_cv_sys_largefile_CC" != no; then
11881 CC=$CC$ac_cv_sys_largefile_CC
11882 fi
11883
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11885$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
d0ac1c44 11886if ${ac_cv_sys_file_offset_bits+:} false; then :
b879806f
AM
11887 $as_echo_n "(cached) " >&6
11888else
11889 while :; do
11890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11891/* end confdefs.h. */
11892#include <sys/types.h>
11893 /* Check that off_t can represent 2**63 - 1 correctly.
11894 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11895 since some C++ compilers masquerading as C compilers
11896 incorrectly reject 9223372036854775807. */
f8861f5d 11897#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
b879806f
AM
11898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11899 && LARGE_OFF_T % 2147483647 == 1)
11900 ? 1 : -1];
11901int
11902main ()
11903{
11904
11905 ;
11906 return 0;
11907}
11908_ACEOF
11909if ac_fn_c_try_compile "$LINENO"; then :
11910 ac_cv_sys_file_offset_bits=no; break
11911fi
11912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914/* end confdefs.h. */
11915#define _FILE_OFFSET_BITS 64
11916#include <sys/types.h>
11917 /* Check that off_t can represent 2**63 - 1 correctly.
11918 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11919 since some C++ compilers masquerading as C compilers
11920 incorrectly reject 9223372036854775807. */
f8861f5d 11921#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
b879806f
AM
11922 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11923 && LARGE_OFF_T % 2147483647 == 1)
11924 ? 1 : -1];
11925int
11926main ()
11927{
11928
11929 ;
11930 return 0;
11931}
11932_ACEOF
11933if ac_fn_c_try_compile "$LINENO"; then :
11934 ac_cv_sys_file_offset_bits=64; break
11935fi
11936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11937 ac_cv_sys_file_offset_bits=unknown
11938 break
11939done
11940fi
11941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11942$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11943case $ac_cv_sys_file_offset_bits in #(
11944 no | unknown) ;;
11945 *)
11946cat >>confdefs.h <<_ACEOF
11947#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11948_ACEOF
11949;;
11950esac
11951rm -rf conftest*
11952 if test $ac_cv_sys_file_offset_bits = unknown; then
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11954$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
d0ac1c44 11955if ${ac_cv_sys_large_files+:} false; then :
b879806f
AM
11956 $as_echo_n "(cached) " >&6
11957else
11958 while :; do
11959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960/* end confdefs.h. */
11961#include <sys/types.h>
11962 /* Check that off_t can represent 2**63 - 1 correctly.
11963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11964 since some C++ compilers masquerading as C compilers
11965 incorrectly reject 9223372036854775807. */
f8861f5d 11966#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
b879806f
AM
11967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11968 && LARGE_OFF_T % 2147483647 == 1)
11969 ? 1 : -1];
11970int
11971main ()
11972{
11973
11974 ;
11975 return 0;
11976}
11977_ACEOF
11978if ac_fn_c_try_compile "$LINENO"; then :
11979 ac_cv_sys_large_files=no; break
11980fi
11981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983/* end confdefs.h. */
11984#define _LARGE_FILES 1
11985#include <sys/types.h>
11986 /* Check that off_t can represent 2**63 - 1 correctly.
11987 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11988 since some C++ compilers masquerading as C compilers
11989 incorrectly reject 9223372036854775807. */
f8861f5d 11990#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
b879806f
AM
11991 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11992 && LARGE_OFF_T % 2147483647 == 1)
11993 ? 1 : -1];
11994int
11995main ()
11996{
11997
11998 ;
11999 return 0;
12000}
12001_ACEOF
12002if ac_fn_c_try_compile "$LINENO"; then :
12003 ac_cv_sys_large_files=1; break
12004fi
12005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12006 ac_cv_sys_large_files=unknown
12007 break
12008done
12009fi
12010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12011$as_echo "$ac_cv_sys_large_files" >&6; }
12012case $ac_cv_sys_large_files in #(
12013 no | unknown) ;;
12014 *)
12015cat >>confdefs.h <<_ACEOF
12016#define _LARGE_FILES $ac_cv_sys_large_files
12017_ACEOF
12018;;
12019esac
12020rm -rf conftest*
12021 fi
d0ac1c44
SM
12022
12023
b879806f
AM
12024fi
12025
12026
2d7f2507
AM
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
12028$as_echo_n "checking how to compare bootstrapped objects... " >&6; }
d0ac1c44 12029if ${gcc_cv_prog_cmp_skip+:} false; then :
2d7f2507
AM
12030 $as_echo_n "(cached) " >&6
12031else
12032 echo abfoo >t1
12033 echo cdfoo >t2
da17fe9d 12034 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
2d7f2507
AM
12035 if cmp t1 t2 2 2 > /dev/null 2>&1; then
12036 if cmp t1 t2 1 1 > /dev/null 2>&1; then
12037 :
12038 else
12039 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
12040 fi
12041 fi
12042 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
12043 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
12044 :
12045 else
12046 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
12047 fi
12048 fi
12049 rm t1 t2
12050
12051fi
12052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
12053$as_echo "$gcc_cv_prog_cmp_skip" >&6; }
12054do_compare="$gcc_cv_prog_cmp_skip"
12055
12056
b879806f 12057
81ecdfbb
RW
12058# Check whether --enable-targets was given.
12059if test "${enable_targets+set}" = set; then :
12060 enableval=$enable_targets; case "${enableval}" in
d0ac1c44 12061 yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5
ce2cded5
L
12062 ;;
12063 no) enable_targets= ;;
12064 *) enable_targets=$enableval ;;
12065esac
81ecdfbb
RW
12066fi
12067
e044973b
AM
12068ac_checking=
12069. ${srcdir}/../bfd/development.sh
12070test "$development" = true && ac_checking=yes
81ecdfbb
RW
12071# Check whether --enable-checking was given.
12072if test "${enable_checking+set}" = set; then :
12073 enableval=$enable_checking; case "${enableval}" in
ce2cded5
L
12074 no|none) ac_checking= ;;
12075 *) ac_checking=yes ;;
12076esac
81ecdfbb
RW
12077fi
12078if test x$ac_checking != x ; then
d7040cdb 12079
81ecdfbb 12080$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
d7040cdb 12081
ce2cded5 12082fi
d7040cdb 12083
6c3bc0f8
NC
12084# PR gas/19109
12085# Decide the default method for compressing debug sections.
12086ac_default_compressed_debug_sections=unset
12087# Provide a configure time option to override our default.
12088# Check whether --enable-compressed_debug_sections was given.
12089if test "${enable_compressed_debug_sections+set}" = set; then :
4894d80b 12090 enableval=$enable_compressed_debug_sections; case ,"${enableval}", in
9b4c123c 12091 ,yes, | ,all, | *,gas,*) ac_default_compressed_debug_sections=yes ;;
4894d80b 12092 ,no, | ,none,) ac_default_compressed_debug_sections=no ;;
6c3bc0f8
NC
12093 *) ac_default_compressed_debug_sections=unset ;;
12094esac
12095fi
12096
0cb4071e
L
12097# PR gas/19520
12098# Decide if x86 assembler should generate relax relocations.
12099ac_default_x86_relax_relocations=unset
12100# Provide a configure time option to override our default.
12101# Check whether --enable-x86_relax_relocations was given.
12102if test "${enable_x86_relax_relocations+set}" = set; then :
12103 enableval=$enable_x86_relax_relocations; case "${enableval}" in
12104 no) ac_default_x86_relax_relocations=0 ;;
12105esac
12106fi
12107
b8871f35
L
12108# Decide if ELF assembler should generate common symbols with the
12109# STT_COMMON type.
12110ac_default_elf_stt_common=unset
12111# Provide a configure time option to override our default.
12112# Check whether --enable-elf_stt_common was given.
12113if test "${enable_elf_stt_common+set}" = set; then :
12114 enableval=$enable_elf_stt_common; case "${enableval}" in
12115 yes) ac_default_elf_stt_common=1 ;;
12116esac
12117fi
12118
0df8ad28
NC
12119
12120# Decide if the ELF assembler should default to generating
12121# GNU Build notes if none are provided by the input.
12122ac_default_generate_build_notes=0
12123# Provide a configuration option to override the default.
12124# Check whether --enable-generate_build_notes was given.
12125if test "${enable_generate_build_notes+set}" = set; then :
12126 enableval=$enable_generate_build_notes; case "${enableval}" in
12127 yes) ac_default_generate_build_notes=1 ;;
12128 no) ac_default_generate_build_notes=0 ;;
12129esac
12130fi
12131
6f2117ba
PH
12132# Decide if the MIPS assembler should default to enable MIPS fix Loongson3
12133# LLSC errata.
12134ac_default_mips_fix_loongson3_llsc=unset
12135# Provide a configuration option to override the default.
12136# Check whether --enable-mips-fix-loongson3-llsc was given.
12137if test "${enable_mips_fix_loongson3_llsc+set}" = set; then :
12138 enableval=$enable_mips_fix_loongson3_llsc; case "${enableval}" in
12139 yes) ac_default_mips_fix_loongson3_llsc=1 ;;
12140 no) ac_default_mips_fix_loongson3_llsc=0 ;;
12141esac
12142fi
0df8ad28 12143
b4a3a7b4
L
12144# Decide if the x86 ELF assembler should default to generating GNU x86
12145# used ISA and feature properties.
12146ac_default_generate_x86_used_note=unset
12147# Provide a configuration option to override the default.
12148# Check whether --enable-x86-used-note was given.
12149if test "${enable_x86_used_note+set}" = set; then :
12150 enableval=$enable_x86_used_note; case "${enableval}" in
12151 yes) ac_default_generate_x86_used_note=1 ;;
12152 no) ac_default_generate_x86_used_note=0 ;;
12153esac
12154fi
12155
2dc8dd17
JW
12156# Decide if the RISC-V ELF assembler should default to generating attribute.
12157ac_default_generate_riscv_attr=unset
12158# Provide a configuration option to override the default.
12159# Check whether --enable-default-riscv-attribute was given.
12160if test "${enable_default_riscv_attribute+set}" = set; then :
12161 enableval=$enable_default_riscv_attribute; case "${enableval}" in
12162 yes) ac_default_generate_riscv_attr=1 ;;
12163 no) ac_default_generate_riscv_attr=0 ;;
12164esac
12165fi
b4a3a7b4 12166
ce2cded5 12167using_cgen=no
d7040cdb 12168
d7040cdb 12169
270c9937
JB
12170# Set the 'development' global.
12171. $srcdir/../bfd/development.sh
12172
c5da1932
VZ
12173# Set acp_cpp_for_build variable
12174ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD"
12175
9780e045 12176# Default set of GCC warnings to enable.
397841b5 12177GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
c5da1932 12178GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
9780e045
NC
12179
12180# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
397841b5
AM
12181cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182/* end confdefs.h. */
12183__GNUC__
12184_ACEOF
12185if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12186 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
397841b5
AM
12187
12188else
12189 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow"
12190fi
12191rm -f conftest*
12192
d7040cdb 12193
9780e045
NC
12194# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196/* end confdefs.h. */
12197__GNUC__
12198_ACEOF
12199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12200 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
9780e045
NC
12201
12202else
12203 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144"
12204fi
12205rm -f conftest*
12206
12207
6757cf57
TS
12208# Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings.
12209WARN_WRITE_STRINGS=""
12210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12211/* end confdefs.h. */
12212__GNUC__
12213_ACEOF
12214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3107326d 12215 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
6757cf57
TS
12216
12217else
12218 WARN_WRITE_STRINGS="-Wwrite-strings"
12219fi
12220rm -f conftest*
12221
9780e045 12222
96fe4562 12223# Verify CC_FOR_BUILD to be compatible with warning flags
c5da1932
VZ
12224
12225# Add -Wshadow if the compiler is a sufficiently recent version of GCC.
12226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12227/* end confdefs.h. */
12228__GNUC__
12229_ACEOF
12230if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12231 $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12232
12233else
12234 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow"
12235fi
12236rm -f conftest*
12237
12238
12239# Add -Wstack-usage if the compiler is a sufficiently recent version of GCC.
12240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12241/* end confdefs.h. */
12242__GNUC__
12243_ACEOF
12244if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 |
3107326d 12245 $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then :
c5da1932
VZ
12246
12247else
12248 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144"
12249fi
12250rm -f conftest*
12251
12252
81ecdfbb
RW
12253# Check whether --enable-werror was given.
12254if test "${enable_werror+set}" = set; then :
12255 enableval=$enable_werror; case "${enableval}" in
ce2cded5
L
12256 yes | y) ERROR_ON_WARNING="yes" ;;
12257 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 12258 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
ce2cded5 12259 esac
81ecdfbb
RW
12260fi
12261
d7040cdb 12262
397841b5 12263# Disable -Wformat by default when using gcc on mingw
bb8541b9
L
12264case "${host}" in
12265 *-*-mingw32*)
12266 if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
12267 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format"
c5da1932 12268 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format"
bb8541b9
L
12269 fi
12270 ;;
12271 *) ;;
12272esac
12273
270c9937
JB
12274# Enable -Werror by default when using gcc. Turn it off for releases.
12275if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then
ce2cded5
L
12276 ERROR_ON_WARNING=yes
12277fi
12278
12279NO_WERROR=
12280if test "${ERROR_ON_WARNING}" = yes ; then
9780e045 12281 GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror"
c5da1932 12282 GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror"
ce2cded5
L
12283 NO_WERROR="-Wno-error"
12284fi
12285
12286if test "${GCC}" = yes ; then
12287 WARN_CFLAGS="${GCC_WARN_CFLAGS}"
c5da1932 12288 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}"
ce2cded5
L
12289fi
12290
81ecdfbb
RW
12291# Check whether --enable-build-warnings was given.
12292if test "${enable_build_warnings+set}" = set; then :
12293 enableval=$enable_build_warnings; case "${enableval}" in
c5da1932
VZ
12294 yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}"
12295 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";;
ce2cded5
L
12296 no) if test "${GCC}" = yes ; then
12297 WARN_CFLAGS="-w"
c5da1932 12298 WARN_CFLAGS_FOR_BUILD="-w"
ce2cded5
L
12299 fi;;
12300 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12301 WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}"
12302 WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";;
ce2cded5 12303 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c5da1932
VZ
12304 WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}"
12305 WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";;
12306 *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`
12307 WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;;
ce2cded5 12308esac
81ecdfbb
RW
12309fi
12310
d7040cdb 12311
ce2cded5
L
12312if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then
12313 echo "Setting warning flags = $WARN_CFLAGS" 6>&1
12314fi
d7040cdb 12315
d7040cdb 12316
d7040cdb 12317
d7040cdb 12318
d7040cdb 12319
6757cf57 12320
c5da1932 12321
ce2cded5 12322# Generate a header file
81ecdfbb 12323ac_config_headers="$ac_config_headers config.h:config.in"
d7040cdb 12324
d7040cdb 12325
9004b6bd
AB
12326
12327# Check whether --with-cpu was given.
12328if test "${with_cpu+set}" = set; then :
12329 withval=$with_cpu;
12330cat >>confdefs.h <<_ACEOF
12331#define TARGET_WITH_CPU "${with_cpu}"
12332_ACEOF
12333
12334fi
12335
12336
df7b86aa
NC
12337# PR 14072
12338
12339
ce2cded5
L
12340# If we are on a DOS filesystem, we must use gdb.ini rather than
12341# .gdbinit.
12342case "${host}" in
12343 *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-windows*)
12344 GDBINIT="gdb.ini"
81ecdfbb 12345 ac_config_files="$ac_config_files gdb.ini:gdbinit.in"
d7040cdb 12346
ce2cded5
L
12347 ;;
12348 *)
12349 GDBINIT=".gdbinit"
81ecdfbb 12350 ac_config_files="$ac_config_files .gdbinit:gdbinit.in"
d7040cdb 12351
ce2cded5
L
12352 ;;
12353esac
d7040cdb 12354
d7040cdb 12355
a8eb42a8 12356#We need this for the host.
81ecdfbb
RW
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12358$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 12359if ${ac_cv_c_bigendian+:} false; then :
81ecdfbb
RW
12360 $as_echo_n "(cached) " >&6
12361else
12362 ac_cv_c_bigendian=unknown
12363 # See if we're dealing with a universal compiler.
12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365/* end confdefs.h. */
12366#ifndef __APPLE_CC__
12367 not a universal capable compiler
12368 #endif
12369 typedef int dummy;
12370
12371_ACEOF
12372if ac_fn_c_try_compile "$LINENO"; then :
12373
12374 # Check for potential -arch flags. It is not universal unless
12375 # there are at least two -arch flags with different values.
12376 ac_arch=
12377 ac_prev=
12378 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12379 if test -n "$ac_prev"; then
12380 case $ac_word in
12381 i?86 | x86_64 | ppc | ppc64)
12382 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12383 ac_arch=$ac_word
12384 else
12385 ac_cv_c_bigendian=universal
12386 break
12387 fi
12388 ;;
12389 esac
12390 ac_prev=
12391 elif test "x$ac_word" = "x-arch"; then
12392 ac_prev=arch
12393 fi
12394 done
12395fi
12396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12397 if test $ac_cv_c_bigendian = unknown; then
12398 # See if sys/param.h defines the BYTE_ORDER macro.
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
12400/* end confdefs.h. */
12401#include <sys/types.h>
81ecdfbb 12402 #include <sys/param.h>
d7040cdb 12403
ce2cded5
L
12404int
12405main ()
12406{
81ecdfbb
RW
12407#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12408 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12409 && LITTLE_ENDIAN)
12410 bogus endian macros
12411 #endif
d7040cdb 12412
ce2cded5
L
12413 ;
12414 return 0;
12415}
12416_ACEOF
81ecdfbb 12417if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 12418 # It does; now see whether it defined to BIG_ENDIAN or not.
81ecdfbb 12419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5
L
12420/* end confdefs.h. */
12421#include <sys/types.h>
81ecdfbb 12422 #include <sys/param.h>
d7040cdb 12423
ce2cded5
L
12424int
12425main ()
12426{
12427#if BYTE_ORDER != BIG_ENDIAN
81ecdfbb
RW
12428 not big endian
12429 #endif
d7040cdb 12430
ce2cded5
L
12431 ;
12432 return 0;
12433}
12434_ACEOF
81ecdfbb 12435if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5
L
12436 ac_cv_c_bigendian=yes
12437else
81ecdfbb 12438 ac_cv_c_bigendian=no
ce2cded5 12439fi
81ecdfbb
RW
12440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12441fi
12442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12443 fi
12444 if test $ac_cv_c_bigendian = unknown; then
12445 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447/* end confdefs.h. */
12448#include <limits.h>
d7040cdb 12449
81ecdfbb
RW
12450int
12451main ()
12452{
12453#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12454 bogus endian macros
12455 #endif
12456
12457 ;
12458 return 0;
12459}
ce2cded5 12460_ACEOF
81ecdfbb
RW
12461if ac_fn_c_try_compile "$LINENO"; then :
12462 # It does; now see whether it defined to _BIG_ENDIAN or not.
12463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 12464/* end confdefs.h. */
81ecdfbb
RW
12465#include <limits.h>
12466
ce2cded5
L
12467int
12468main ()
12469{
81ecdfbb
RW
12470#ifndef _BIG_ENDIAN
12471 not big endian
12472 #endif
12473
ce2cded5
L
12474 ;
12475 return 0;
12476}
12477_ACEOF
81ecdfbb 12478if ac_fn_c_try_compile "$LINENO"; then :
ce2cded5 12479 ac_cv_c_bigendian=yes
81ecdfbb
RW
12480else
12481 ac_cv_c_bigendian=no
d7040cdb 12482fi
81ecdfbb 12483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 12484fi
81ecdfbb
RW
12485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12486 fi
12487 if test $ac_cv_c_bigendian = unknown; then
12488 # Compile a test program.
12489 if test "$cross_compiling" = yes; then :
12490 # Try to guess by grepping values from an object file.
12491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12492/* end confdefs.h. */
12493short int ascii_mm[] =
12494 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12495 short int ascii_ii[] =
12496 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12497 int use_ascii (int i) {
12498 return ascii_mm[i] + ascii_ii[i];
12499 }
12500 short int ebcdic_ii[] =
12501 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12502 short int ebcdic_mm[] =
12503 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12504 int use_ebcdic (int i) {
12505 return ebcdic_mm[i] + ebcdic_ii[i];
12506 }
12507 extern int foo;
d7040cdb 12508
81ecdfbb
RW
12509int
12510main ()
12511{
12512return use_ascii (foo) == use_ebcdic (foo);
12513 ;
12514 return 0;
12515}
12516_ACEOF
12517if ac_fn_c_try_compile "$LINENO"; then :
12518 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12519 ac_cv_c_bigendian=yes
12520 fi
12521 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12522 if test "$ac_cv_c_bigendian" = unknown; then
12523 ac_cv_c_bigendian=no
12524 else
12525 # finding both strings is unlikely to happen, but who knows?
12526 ac_cv_c_bigendian=unknown
12527 fi
12528 fi
ce2cded5 12529fi
81ecdfbb 12530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
ce2cded5 12531else
81ecdfbb 12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ce2cded5 12533/* end confdefs.h. */
81ecdfbb 12534$ac_includes_default
ce2cded5
L
12535int
12536main ()
12537{
81ecdfbb
RW
12538
12539 /* Are we little or big endian? From Harbison&Steele. */
12540 union
12541 {
12542 long int l;
12543 char c[sizeof (long int)];
12544 } u;
12545 u.l = 1;
12546 return u.c[sizeof (long int) - 1] == 1;
12547
12548 ;
12549 return 0;
ce2cded5 12550}
d7040cdb 12551_ACEOF
81ecdfbb 12552if ac_fn_c_try_run "$LINENO"; then :
ce2cded5
L
12553 ac_cv_c_bigendian=no
12554else
81ecdfbb 12555 ac_cv_c_bigendian=yes
d7040cdb 12556fi
81ecdfbb
RW
12557rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12558 conftest.$ac_objext conftest.beam conftest.$ac_ext
d7040cdb 12559fi
81ecdfbb
RW
12560
12561 fi
ce2cded5 12562fi
81ecdfbb
RW
12563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12564$as_echo "$ac_cv_c_bigendian" >&6; }
12565 case $ac_cv_c_bigendian in #(
12566 yes)
12567 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12568;; #(
12569 no)
12570 ;; #(
12571 universal)
d7040cdb 12572
81ecdfbb
RW
12573$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12574
12575 ;; #(
12576 *)
d0ac1c44 12577 as_fn_error $? "unknown endianness
81ecdfbb
RW
12578 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12579 esac
d7040cdb 12580
d7040cdb 12581
ce2cded5 12582te_file=generic
d7040cdb 12583
ce2cded5
L
12584# Makefile target for installing gas in $(tooldir)/bin.
12585install_tooldir=install-exec-tooldir
d7040cdb 12586
ce2cded5
L
12587canon_targets=""
12588all_targets=no
12589if test -n "$enable_targets" ; then
12590 for t in `echo $enable_targets | sed 's/,/ /g'`; do
12591 if test $t = "all"; then
12592 all_targets=yes
12593 continue
12594 fi
12595 result=`$ac_config_sub $t 2>/dev/null`
12596 if test -n "$result" ; then
12597 canon_targets="$canon_targets $result"
12598# else
12599# # Permit "all", etc. We don't support it yet though.
12600# canon_targets="$canon_targets $t"
12601 fi
12602 done
12603 _gas_uniq_list="$canon_targets"
d7040cdb
SE
12604_gas_uniq_newlist=""
12605for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
12606 case $_gas_uniq_i in
12607 _gas_uniq_dummy) ;;
12608 *) case " $_gas_uniq_newlist " in
12609 *" $_gas_uniq_i "*) ;;
12610 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
12611 esac ;;
12612 esac
12613done
ce2cded5 12614canon_targets=$_gas_uniq_newlist
d7040cdb 12615
ce2cded5
L
12616fi
12617
12618emulations=""
12619
12620for this_target in $target $canon_targets ; do
12621
12622 targ=${this_target}
12623 . ${srcdir}/configure.tgt
12624
12625 case ${target_cpu} in
12626 crisv32)
12627
12628cat >>confdefs.h <<_ACEOF
12629#define DEFAULT_CRIS_ARCH $arch
d7040cdb 12630_ACEOF
ce2cded5
L
12631
12632 ;;
12633 esac
12634
12635 if test ${this_target} = $target ; then
12636 target_cpu_type=${cpu_type}
12637 elif test ${target_cpu_type} != ${cpu_type} ; then
12638 continue
12639 fi
12640
12641 generic_target=${cpu_type}-${target_vendor}-${target_os}
12642 case ${generic_target} in
ce2cded5
L
12643 i386-*-msdosdjgpp* \
12644 | i386-*-go32* \
12645 | i386-go32-rtems*)
12646
81ecdfbb 12647$as_echo "#define STRICTCOFF 1" >>confdefs.h
ce2cded5
L
12648
12649 ;;
12650
0cb4071e
L
12651 i386-*-solaris2 \
12652 | x86_64-*-solaris2 \
12653 | i386-*-solaris2.[0-9] \
12654 | i386-*-solaris2.1[01] \
12655 | x86_64-*-solaris2.1[01])
12656 if test ${this_target} = $target \
12657 && test ${ac_default_x86_relax_relocations} = unset; then
12658 ac_default_x86_relax_relocations=0
12659 fi
12660 ;;
12661
7ba29e2a
NC
12662 microblaze*)
12663 ;;
12664
e5231592 12665 ppc-*-aix[5-9].*)
ce2cded5 12666
81ecdfbb 12667$as_echo "#define AIX_WEAK_SUPPORT 1" >>confdefs.h
ce2cded5 12668
ce2cded5
L
12669 ;;
12670 ppc-*-solaris*)
12671 if test ${this_target} = $target; then
12672
81ecdfbb 12673$as_echo "#define TARGET_SOLARIS_COMMENT 1" >>confdefs.h
ce2cded5
L
12674
12675 fi
12676 if test x${endian} = xbig; then
d0ac1c44 12677 as_fn_error $? "Solaris must be configured little endian" "$LINENO" 5
ce2cded5
L
12678 fi
12679 ;;
d7040cdb 12680 esac
d7040cdb 12681
ce2cded5
L
12682 if test ${this_target} = $target ; then
12683 endian_def=
12684 if test x${endian} = xbig; then
12685 endian_def=1
12686 elif test x${endian} = xlittle; then
12687 endian_def=0
12688 fi
12689 if test x${endian_def} != x; then
12690
12691cat >>confdefs.h <<_ACEOF
12692#define TARGET_BYTES_BIG_ENDIAN $endian_def
12693_ACEOF
12694
12695 fi
12696 fi
12697
12698# Other random stuff.
12699
12700 case ${cpu_type} in
12701 mips)
12702 # Set mips_cpu to the name of the default CPU.
12703 case ${target_cpu} in
12704 mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
12705 mips_cpu=from-abi
12706 ;;
12707 mipsisa32 | mipsisa32el)
12708 mips_cpu=mips32
12709 ;;
12710 mipsisa32r2 | mipsisa32r2el)
12711 mips_cpu=mips32r2
12712 ;;
ae52f483
AB
12713 mipsisa32r3 | mipsisa32r3el)
12714 mips_cpu=mips32r3
12715 ;;
12716 mipsisa32r5 | mipsisa32r5el)
12717 mips_cpu=mips32r5
12718 ;;
7361da2c
AB
12719 mipsisa32r6 | mipsisa32r6el)
12720 mips_cpu=mips32r6
12721 ;;
ce2cded5
L
12722 mipsisa64 | mipsisa64el)
12723 mips_cpu=mips64
12724 ;;
12725 mipsisa64r2 | mipsisa64r2el)
12726 mips_cpu=mips64r2
12727 ;;
ae52f483
AB
12728 mipsisa64r3 | mipsisa64r3el)
12729 mips_cpu=mips64r3
12730 ;;
12731 mipsisa64r5 | mipsisa64r5el)
12732 mips_cpu=mips64r5
12733 ;;
7361da2c
AB
12734 mipsisa64r6 | mipsisa64r6el)
12735 mips_cpu=mips64r6
12736 ;;
ce2cded5
L
12737 mipstx39 | mipstx39el)
12738 mips_cpu=r3900
12739 ;;
12740 mips64vr | mips64vrel)
12741 mips_cpu=vr4100
12742 ;;
12743 mipsisa32r2* | mipsisa64r2*)
12744 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r2//' -e 's/el$//'`
12745 ;;
7361da2c
AB
12746 mipsisa32r6* | mipsisa64r6*)
12747 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..r6//' -e 's/el$//'`
12748 ;;
ce2cded5
L
12749 mips64* | mipsisa64* | mipsisa32*)
12750 mips_cpu=`echo $target_cpu | sed -e 's/[a-z]*..//' -e 's/el$//'`
12751 ;;
e407c74b
NC
12752 mips*)
12753 mips_cpu=`echo $target_cpu | sed -e 's/^mips//' -e 's/el$//'`
12754 ;;
ce2cded5 12755 *)
d0ac1c44 12756 as_fn_error $? "$target_cpu isn't a supported MIPS CPU name" "$LINENO" 5
ce2cded5
L
12757 ;;
12758 esac
12759 # See whether it's appropriate to set E_MIPS_ABI_O32 for o32
12760 # binaries. It's a GNU extension that some OSes don't understand.
ce2cded5
L
12761 case ${target} in
12762 *-*-irix*)
12763 use_e_mips_abi_o32=0
12764 ;;
12765 *)
12766 use_e_mips_abi_o32=1
12767 ;;
12768 esac
12769 # Decide whether to generate 32-bit or 64-bit code by default.
12770 # Used to resolve -march=from-abi when an embedded ABI is selected.
12771 case ${target} in
12772 mips64*-*-* | mipsisa64*-*-*)
12773 mips_default_64bit=1
12774 ;;
12775 *)
12776 mips_default_64bit=0
12777 ;;
12778 esac
12779 # Decide which ABI to target by default.
12780 case ${target} in
0984958b
MR
12781 mips64*-linux* | mips-sgi-irix6* | mips64*-freebsd* \
12782 | mips64*-kfreebsd*-gnu | mips64*-ps2-elf*)
ce2cded5
L
12783 mips_default_abi=N32_ABI
12784 ;;
aeffff67 12785 mips*-linux* | mips*-freebsd* | mips*-kfreebsd*-gnu)
ce2cded5
L
12786 mips_default_abi=O32_ABI
12787 ;;
12788 mips64*-openbsd*)
12789 mips_default_abi=N64_ABI
12790 ;;
12791 *)
12792 mips_default_abi=NO_ABI
12793 ;;
12794 esac
12795
12796cat >>confdefs.h <<_ACEOF
12797#define MIPS_CPU_STRING_DEFAULT "$mips_cpu"
d7040cdb 12798_ACEOF
d7040cdb
SE
12799
12800
12801cat >>confdefs.h <<_ACEOF
ce2cded5 12802#define USE_E_MIPS_ABI_O32 $use_e_mips_abi_o32
d7040cdb
SE
12803_ACEOF
12804
12805
12806cat >>confdefs.h <<_ACEOF
ce2cded5 12807#define MIPS_DEFAULT_64BIT $mips_default_64bit
d7040cdb
SE
12808_ACEOF
12809
12810
ce2cded5
L
12811cat >>confdefs.h <<_ACEOF
12812#define MIPS_DEFAULT_ABI $mips_default_abi
12813_ACEOF
d7040cdb 12814
ce2cded5
L
12815 ;;
12816 esac
d7040cdb 12817
ce2cded5
L
12818 # Do we need the opcodes library?
12819 case ${cpu_type} in
12820 vax | tic30)
12821 ;;
d7040cdb 12822
ce2cded5
L
12823 *)
12824 need_opcodes=yes
d7040cdb 12825
ce2cded5
L
12826 case "${enable_shared}" in
12827 yes) shared_opcodes=true ;;
12828 *opcodes*) shared_opcodes=true ;;
12829 *) shared_opcodes=false ;;
12830 esac
12831 ;;
12832 esac
d7040cdb 12833
ce2cded5
L
12834 # Any other special object files needed ?
12835 case ${cpu_type} in
d7040cdb 12836
ce2cded5 12837 bfin)
e11078da
AM
12838 for f in bfin-parse.o bfin-lex-wrapper.o; do
12839 case " $extra_objects " in
12840 *" $f "*) ;;
12841 *) extra_objects="$extra_objects $f" ;;
12842 esac
12843 done
12844 ;;
d7040cdb 12845
f8861f5d
JM
12846 bpf)
12847 if test $this_target = $target ; then
12848
12849cat >>confdefs.h <<_ACEOF
12850#define DEFAULT_ARCH "${arch}"
12851_ACEOF
12852
12853 fi
12854 using_cgen=yes
12855 ;;
73589c9d 12856 epiphany | fr30 | ip2k | iq2000 | lm32 | m32r | or1k)
ce2cded5
L
12857 using_cgen=yes
12858 ;;
d7040cdb 12859
ce2cded5
L
12860 m32c)
12861 using_cgen=yes
12862 ;;
12863 frv)
12864 using_cgen=yes
12865 ;;
12866 m68k)
e11078da
AM
12867 f=m68k-parse.o
12868 case " $extra_objects " in
12869 *" $f "*) ;;
12870 *) extra_objects="$extra_objects $f" ;;
ce2cded5
L
12871 esac
12872 ;;
d7040cdb 12873
ce2cded5
L
12874 mep)
12875 using_cgen=yes
12876 ;;
d7040cdb 12877
ce2cded5 12878 mips)
e11078da
AM
12879 for f in itbl-parse.o itbl-lex-wrapper.o itbl-ops.o; do
12880 case " $extra_objects " in
12881 *" $f "*) ;;
12882 *) extra_objects="$extra_objects $f" ;;
12883 esac
12884 done
ce2cded5 12885 ;;
d7040cdb 12886
ce2cded5 12887 mt)
e11078da 12888 using_cgen=yes
ce2cded5 12889 ;;
d7040cdb 12890
35c08157 12891 nds32)
fbaf61ad
NC
12892 # setup NDS32_LINUX_TOOLCHAIN definition
12893 if test "linux" = $em; then
12894
12895$as_echo "#define NDS32_LINUX_TOOLCHAIN 1" >>confdefs.h
12896
12897 else
12898
12899$as_echo "#define NDS32_LINUX_TOOLCHAIN 0" >>confdefs.h
12900
12901 fi
12902
e11078da 12903 # Decide BASELINE, REDUCED_REGS, FPU_DP_EXT, FPU_SP_EXT features
35c08157
KLC
12904 # based on arch_name.
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --with-arch" >&5
12906$as_echo_n "checking for default configuration of --with-arch... " >&6; }
12907 if test "x${with_arch}" != x; then
12908 case ${with_arch} in
e11078da 12909 v2j | v2s | v2f | v2 | v3m | v3j | v3s | v3f | v3 )
35c08157
KLC
12910
12911cat >>confdefs.h <<_ACEOF
12912#define NDS32_DEFAULT_ARCH_NAME "$with_arch"
12913_ACEOF
12914
e11078da 12915 ;;
35c08157 12916 *)
d0ac1c44 12917 as_fn_error $? "This kind of arch name does *NOT* exist!" "$LINENO" 5
35c08157 12918 ;;
e11078da 12919 esac
35c08157
KLC
12920 fi
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_arch" >&5
12922$as_echo "$with_arch" >&6; }
12923
e11078da
AM
12924 # Decide features one by one.
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dx-regs" >&5
35c08157 12926$as_echo_n "checking for default configuration of --enable-dx-regs... " >&6; }
6cd8405e 12927 if test "x${enable_dx_regs}" = xyes; then
35c08157
KLC
12928
12929$as_echo "#define NDS32_DEFAULT_DX_REGS 1" >>confdefs.h
12930
12931 else
12932
12933$as_echo "#define NDS32_DEFAULT_DX_REGS 0" >>confdefs.h
12934
12935 fi
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dx_regs" >&5
12937$as_echo "$enable_dx_regs" >&6; }
12938
e11078da 12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext" >&5
35c08157 12940$as_echo_n "checking for default configuration of --enable-perf-ext... " >&6; }
6cd8405e 12941 if test "x${enable_perf_ext}" = xno; then
35c08157
KLC
12942
12943$as_echo "#define NDS32_DEFAULT_PERF_EXT 0" >>confdefs.h
12944
12945 else
12946
12947$as_echo "#define NDS32_DEFAULT_PERF_EXT 1" >>confdefs.h
12948
12949 fi
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext" >&5
12951$as_echo "$enable_perf_ext" >&6; }
12952
e11078da 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-perf-ext2" >&5
35c08157 12954$as_echo_n "checking for default configuration of --enable-perf-ext2... " >&6; }
6cd8405e 12955 if test "x${enable_perf_ext2}" = xno; then
35c08157
KLC
12956
12957$as_echo "#define NDS32_DEFAULT_PERF_EXT2 0" >>confdefs.h
12958
12959 else
12960
12961$as_echo "#define NDS32_DEFAULT_PERF_EXT2 1" >>confdefs.h
12962
12963 fi
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_perf_ext2" >&5
12965$as_echo "$enable_perf_ext2" >&6; }
12966
e11078da 12967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-string-ext" >&5
35c08157 12968$as_echo_n "checking for default configuration of --enable-string-ext... " >&6; }
6cd8405e 12969 if test "x${enable_string_ext}" = xno; then
35c08157
KLC
12970
12971$as_echo "#define NDS32_DEFAULT_STRING_EXT 0" >>confdefs.h
12972
12973 else
12974
12975$as_echo "#define NDS32_DEFAULT_STRING_EXT 1" >>confdefs.h
12976
12977 fi
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_string_ext" >&5
12979$as_echo "$enable_string_ext" >&6; }
12980
e11078da 12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-audio-ext" >&5
35c08157 12982$as_echo_n "checking for default configuration of --enable-audio-ext... " >&6; }
6cd8405e 12983 if test "x${enable_audio_ext}" = xno; then
35c08157
KLC
12984
12985$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 0" >>confdefs.h
12986
12987 else
12988
12989$as_echo "#define NDS32_DEFAULT_AUDIO_EXT 1" >>confdefs.h
12990
12991 fi
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_audio_ext" >&5
12993$as_echo "$enable_audio_ext" >&6; }
fbaf61ad
NC
12994
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-dsp-ext" >&5
12996$as_echo_n "checking for default configuration of --enable-dsp-ext... " >&6; }
12997 if test "x${enable_dsp_ext}" = xno; then
12998
12999$as_echo "#define NDS32_DEFAULT_DSP_EXT 0" >>confdefs.h
13000
13001 else
13002
13003$as_echo "#define NDS32_DEFAULT_DSP_EXT 1" >>confdefs.h
13004
13005 fi
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_dsp_ext" >&5
13007$as_echo "$enable_dsp_ext" >&6; }
13008
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default configuration of --enable-zol-ext" >&5
13010$as_echo_n "checking for default configuration of --enable-zol-ext... " >&6; }
13011 if test "x${enable_zol_ext}" = xno; then
13012
13013$as_echo "#define NDS32_DEFAULT_ZOL_EXT 0" >>confdefs.h
13014
13015 else
13016
13017$as_echo "#define NDS32_DEFAULT_ZOL_EXT 1" >>confdefs.h
13018
13019 fi
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_zol_ext" >&5
13021$as_echo "$enable_zol_ext" >&6; }
35c08157
KLC
13022 ;;
13023
3c0367d0 13024 aarch64 | i386 | riscv | s390 | sparc)
ce2cded5 13025 if test $this_target = $target ; then
d7040cdb
SE
13026
13027cat >>confdefs.h <<_ACEOF
ce2cded5 13028#define DEFAULT_ARCH "${arch}"
d7040cdb
SE
13029_ACEOF
13030
ce2cded5
L
13031 fi
13032 ;;
d7040cdb 13033
99c513f6 13034 rl78)
e11078da
AM
13035 f=rl78-parse.o
13036 case " $extra_objects " in
13037 *" $f "*) ;;
13038 *) extra_objects="$extra_objects $f" ;;
13039 esac
99c513f6
DD
13040 ;;
13041
c7927a3c 13042 rx)
e11078da
AM
13043 f=rx-parse.o
13044 case " $extra_objects " in
13045 *" $f "*) ;;
13046 *) extra_objects="$extra_objects $f" ;;
13047 esac
c7927a3c
NC
13048 ;;
13049
ce2cded5
L
13050 xstormy16)
13051 using_cgen=yes
13052 ;;
d7040cdb 13053
ce2cded5
L
13054 xc16x)
13055 using_cgen=yes
13056 ;;
d7040cdb 13057
ce2cded5 13058 xtensa)
e11078da
AM
13059 f=config/xtensa-relax.o
13060 case " $extra_objects " in
13061 *" $f "*) ;;
13062 *) extra_objects="$extra_objects $f" ;;
13063 esac
ce2cded5 13064 ;;
d7040cdb 13065
ce2cded5
L
13066 *)
13067 ;;
13068 esac
d7040cdb 13069
ce2cded5 13070 if test $using_cgen = yes ; then
e11078da
AM
13071 f=cgen.o
13072 case " $extra_objects " in
13073 *" $f "*) ;;
13074 *) extra_objects="$extra_objects $f" ;;
ce2cded5
L
13075 esac
13076 fi
d7040cdb 13077
ce2cded5 13078# See if we really can support this configuration with the emulation code.
d7040cdb 13079
ce2cded5
L
13080 if test $this_target = $target ; then
13081 obj_format=$fmt
13082 te_file=$em
13083 fi
d7040cdb 13084
e11078da
AM
13085 case ${te_file} in
13086 vms)
13087 f=config/te-vms.o
13088 case " $extra_objects " in
13089 *" $f "*) ;;
13090 *) extra_objects="$extra_objects $f" ;;
13091 esac ;;
13092 esac
b11d79f2 13093
ce2cded5 13094# From target name and format, produce a list of supported emulations.
d7040cdb 13095
ce2cded5 13096 case ${generic_target}-${fmt} in
e8044f35 13097 mips-*-*-*) case "$endian" in
ce2cded5
L
13098 big) emulation="mipsbelf mipslelf mipself" ;;
13099 *) emulation="mipslelf mipsbelf mipself" ;;
13100 esac ;;
ce2cded5
L
13101 # i386-pc-pe-coff != i386-pc-coff.
13102 i386-*-pe-coff) ;;
13103 # Uncommenting the next line will turn on support for i386 AOUT
13104 # for the default linux configuration
13105 # i386-*-linux*-elf) emulation="i386elf i386aout" ;;
13106 #
13107 i386-*-aout) emulation="i386aout" ;;
13108 i386-*-coff) emulation="i386coff" ;;
13109 i386-*-elf) emulation="i386elf" ;;
d7040cdb 13110
ce2cded5
L
13111 # Always all formats. The first stated emulation becomes the default.
13112 cris-*-*aout*) emulation="crisaout criself" ;;
13113 cris-*-*) emulation="criself crisaout" ;;
13114 esac
13b2be9c 13115
ce2cded5 13116 emulations="$emulations $emulation"
13b2be9c 13117
13b2be9c 13118done
13b2be9c 13119
0cb4071e
L
13120if test ${ac_default_x86_relax_relocations} = unset; then
13121 ac_default_x86_relax_relocations=1
13122fi
13123
13124cat >>confdefs.h <<_ACEOF
13125#define DEFAULT_GENERATE_X86_RELAX_RELOCATIONS $ac_default_x86_relax_relocations
13126_ACEOF
13127
13128
b8871f35
L
13129if test ${ac_default_elf_stt_common} = unset; then
13130 ac_default_elf_stt_common=0
13131fi
13132
13133cat >>confdefs.h <<_ACEOF
13134#define DEFAULT_GENERATE_ELF_STT_COMMON $ac_default_elf_stt_common
13135_ACEOF
13136
13137
0df8ad28
NC
13138
13139cat >>confdefs.h <<_ACEOF
13140#define DEFAULT_GENERATE_BUILD_NOTES $ac_default_generate_build_notes
13141_ACEOF
13142
13143
b4a3a7b4
L
13144if test ${ac_default_generate_x86_used_note} = unset; then
13145 ac_default_generate_x86_used_note=0
13146fi
13147
13148cat >>confdefs.h <<_ACEOF
13149#define DEFAULT_X86_USED_NOTE $ac_default_generate_x86_used_note
13150_ACEOF
13151
13152
2dc8dd17
JW
13153if test ${ac_default_generate_riscv_attr} = unset; then
13154 case ${target_os} in
13155 elf)
13156 ac_default_generate_riscv_attr=1
13157 ;;
13158 *)
13159 ac_default_generate_riscv_attr=0
13160 ;;
13161 esac
13162fi
13163
13164
13165cat >>confdefs.h <<_ACEOF
13166#define DEFAULT_RISCV_ATTR $ac_default_generate_riscv_attr
13167_ACEOF
13168
13169
6f2117ba
PH
13170if test ${ac_default_mips_fix_loongson3_llsc} = unset; then
13171 ac_default_mips_fix_loongson3_llsc=0
13172fi
13173
13174cat >>confdefs.h <<_ACEOF
13175#define DEFAULT_MIPS_FIX_LOONGSON3_LLSC $ac_default_mips_fix_loongson3_llsc
13176_ACEOF
13177
13178
348ef89a 13179if test x$ac_default_compressed_debug_sections = xyes ; then
e12fe555
NC
13180
13181$as_echo "#define DEFAULT_FLAG_COMPRESS_DEBUG 1" >>confdefs.h
13182
6c3bc0f8 13183fi
e12fe555 13184
ce2cded5
L
13185# Turn on all targets if possible
13186if test ${all_targets} = "yes"; then
13187 case ${target_cpu_type} in
13188 i386)
13189 case ${obj_format} in
13190 aout)
13191 emulations="$emulations i386coff i386elf"
13192 ;;
13193 coff)
13194 emulations="$emulations i386aout i386elf"
13195 ;;
13196 elf)
13197 emulations="$emulations i386aout i386coff"
13198 ;;
13199 esac
13200 ;;
13201 x86_64)
13202 case ${obj_format} in
13203 aout)
13204 emulations="$emulations i386coff i386elf"
13205 ;;
13206 coff)
13207 emulations="$emulations i386aout i386elf"
13208 ;;
13209 elf)
13210 emulations="$emulations i386aout i386coff"
13211 ;;
13212 esac
13213 ;;
13214 esac
13b2be9c 13215fi
c8615825 13216
39871c07
AM
13217# PE code has way too many macros tweaking behaviour
13218case ${te_file} in
13219 pe*) emulations="" ;;
13220esac
13221
ce2cded5
L
13222# Assign floating point type. Most processors with FP support
13223# IEEE FP. On those that don't support FP at all, usually IEEE
13224# is emulated.
13225case ${target_cpu} in
13226 vax | pdp11 ) atof=vax ;;
13227 *) atof=ieee ;;
13228esac
c8615825 13229
ce2cded5 13230case "${obj_format}" in
d0ac1c44 13231 "") as_fn_error $? "GAS does not know what format to use for target ${target}" "$LINENO" 5 ;;
ce2cded5 13232esac
13b2be9c 13233
ce2cded5
L
13234# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
13235cgen_cpu_prefix=""
13236if test $using_cgen = yes ; then
13237 case ${target_cpu} in
73589c9d
CS
13238 or1knd)
13239 cgen_cpu_prefix=or1k ;;
ce2cded5
L
13240 *) cgen_cpu_prefix=${target_cpu} ;;
13241 esac
c8615825 13242
c8615825 13243
81ecdfbb 13244$as_echo "#define USING_CGEN 1" >>confdefs.h
d7040cdb 13245
d7040cdb 13246fi
13b2be9c 13247
ce2cded5
L
13248
13249if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
d0ac1c44 13250 as_fn_error $? "GAS does not support target CPU ${target_cpu_type}" "$LINENO" 5
13b2be9c 13251fi
ce2cded5
L
13252
13253if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
d0ac1c44 13254 as_fn_error $? "GAS does not have support for object file format ${obj_format}" "$LINENO" 5
13b2be9c
DJ
13255fi
13256
ce2cded5
L
13257# Some COFF configurations want these random other flags set.
13258case ${obj_format} in
13259 coff)
13260 case ${target_cpu_type} in
13261 i386)
81ecdfbb 13262$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
13263 ;;
13264 x86_64)
81ecdfbb 13265$as_echo "#define I386COFF 1" >>confdefs.h
ce2cded5
L
13266 ;;
13267 esac
13268 ;;
13269esac
13270
13271# Getting this done right is going to be a bitch. Each configuration specified
13272# with --enable-targets=... should be checked for environment, format, cpu
13273# setting.
13274#
13275# For each configuration, the necessary object file support code must be linked
13276# in. This might be only one, it might be up to four. The necessary emulation
13277# code needs to be provided, too.
13278#
13279# And then there's "--enable-targets=all"....
13280#
e8044f35 13281# For now, just always do it for MIPS ELF configurations. Sigh.
ce2cded5
L
13282
13283formats="${obj_format}"
13284emfiles=""
13285EMULATIONS=""
13286_gas_uniq_list="$emulations"
13287_gas_uniq_newlist=""
13288for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13289 case $_gas_uniq_i in
13290 _gas_uniq_dummy) ;;
13291 *) case " $_gas_uniq_newlist " in
13292 *" $_gas_uniq_i "*) ;;
13293 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13294 esac ;;
13295 esac
13296done
13297emulations=$_gas_uniq_newlist
13298
13299for em in . $emulations ; do
13300 case $em in
13301 .) continue ;;
13302 mipsbelf | mipslelf | mipself)
13303 fmt=elf file=mipself ;;
ce2cded5
L
13304 *coff)
13305 fmt=coff file=$em ;;
13306 *aout)
13307 fmt=aout file=$em ;;
13308 *elf)
13309 fmt=elf file=$em ;;
13310 esac
13311 formats="$formats $fmt"
d0ac1c44 13312 emfiles="$emfiles config/e-$file.o"
ce2cded5
L
13313 EMULATIONS="$EMULATIONS &$em,"
13314done
13315_gas_uniq_list="$formats"
13316_gas_uniq_newlist=""
13317for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13318 case $_gas_uniq_i in
13319 _gas_uniq_dummy) ;;
13320 *) case " $_gas_uniq_newlist " in
13321 *" $_gas_uniq_i "*) ;;
13322 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13323 esac ;;
13324 esac
13b2be9c 13325done
ce2cded5 13326formats=$_gas_uniq_newlist
13b2be9c 13327
ce2cded5
L
13328_gas_uniq_list="$emfiles"
13329_gas_uniq_newlist=""
13330for _gas_uniq_i in _gas_uniq_dummy $_gas_uniq_list ; do
13331 case $_gas_uniq_i in
13332 _gas_uniq_dummy) ;;
13333 *) case " $_gas_uniq_newlist " in
13334 *" $_gas_uniq_i "*) ;;
13335 *) _gas_uniq_newlist="$_gas_uniq_newlist $_gas_uniq_i" ;;
13336 esac ;;
13337 esac
13338done
13339emfiles=$_gas_uniq_newlist
d7040cdb 13340
ce2cded5
L
13341if test `set . $formats ; shift ; echo $#` -gt 1 ; then
13342 for fmt in $formats ; do
13343 case $fmt in
13344 aout)
81ecdfbb 13345$as_echo "#define OBJ_MAYBE_AOUT 1" >>confdefs.h
ce2cded5
L
13346 ;;
13347 coff)
81ecdfbb 13348$as_echo "#define OBJ_MAYBE_COFF 1" >>confdefs.h
ce2cded5
L
13349 ;;
13350 ecoff)
81ecdfbb 13351$as_echo "#define OBJ_MAYBE_ECOFF 1" >>confdefs.h
ce2cded5
L
13352 ;;
13353 elf)
81ecdfbb 13354$as_echo "#define OBJ_MAYBE_ELF 1" >>confdefs.h
ce2cded5
L
13355 ;;
13356 generic)
81ecdfbb 13357$as_echo "#define OBJ_MAYBE_GENERIC 1" >>confdefs.h
ce2cded5
L
13358 ;;
13359 som)
81ecdfbb 13360$as_echo "#define OBJ_MAYBE_SOM 1" >>confdefs.h
ce2cded5
L
13361 ;;
13362 esac
d0ac1c44 13363 extra_objects="$extra_objects config/obj-$fmt.o"
ce2cded5
L
13364 done
13365 obj_format=multi
13b2be9c 13366fi
ce2cded5
L
13367if test `set . $emfiles ; shift ; echo $#` -gt 0 ; then
13368 DEFAULT_EMULATION=`set . $emulations ; echo $2`
e8044f35 13369 # e-mipself has more than one emulation per file, e-i386* has just one at the
ce2cded5
L
13370 # moment. If only one emulation is specified, then don't define
13371 # USE_EMULATIONS or include any of the e-files as they will only be bloat.
13372 case "${obj_format}${emfiles}" in
e8044f35 13373 multi* | *mipself*)
ce2cded5 13374 extra_objects="$extra_objects $emfiles"
d7040cdb 13375
81ecdfbb 13376$as_echo "#define USE_EMULATIONS 1" >>confdefs.h
ce2cded5
L
13377 ;;
13378 esac
13379fi
d7040cdb 13380
13b2be9c 13381
ce2cded5
L
13382cat >>confdefs.h <<_ACEOF
13383#define EMULATIONS $EMULATIONS
13b2be9c 13384_ACEOF
d7040cdb 13385
d7040cdb 13386
ce2cded5
L
13387cat >>confdefs.h <<_ACEOF
13388#define DEFAULT_EMULATION "$DEFAULT_EMULATION"
d7040cdb 13389_ACEOF
d7040cdb 13390
d7040cdb 13391
ce2cded5 13392reject_dev_configs=yes
252b5132 13393
ce2cded5
L
13394case ${reject_dev_configs}-${dev} in
13395 yes-yes) # Oops.
d0ac1c44 13396 as_fn_error $? "GAS does not support the ${generic_target} configuration." "$LINENO" 5
ce2cded5 13397 ;;
d7040cdb
SE
13398esac
13399
13b2be9c 13400
ce2cded5
L
13401
13402
13403
13404
13405
13406# do we need the opcodes library?
13407case "${need_opcodes}" in
13408yes)
13409 OPCODES_LIB=../opcodes/libopcodes.la
13410 ;;
13411esac
13412
13413
13414
13415
13416cat >>confdefs.h <<_ACEOF
13417#define TARGET_ALIAS "${target_alias}"
d7040cdb 13418_ACEOF
20e95c23 13419
20e95c23 13420
ce2cded5
L
13421cat >>confdefs.h <<_ACEOF
13422#define TARGET_CANONICAL "${target}"
13423_ACEOF
20e95c23 13424
d6d788bd 13425
ce2cded5
L
13426cat >>confdefs.h <<_ACEOF
13427#define TARGET_CPU "${target_cpu}"
13428_ACEOF
20e95c23 13429
ce2cded5
L
13430
13431cat >>confdefs.h <<_ACEOF
13432#define TARGET_VENDOR "${target_vendor}"
0efedc4c
AM
13433_ACEOF
13434
13435
ce2cded5
L
13436cat >>confdefs.h <<_ACEOF
13437#define TARGET_OS "${target_os}"
13438_ACEOF
13439
0efedc4c 13440
d7040cdb
SE
13441for ac_prog in 'bison -y' byacc
13442do
13443 # Extract the first word of "$ac_prog", so it can be a program name with args.
13444set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
13445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13446$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13447if ${ac_cv_prog_YACC+:} false; then :
81ecdfbb 13448 $as_echo_n "(cached) " >&6
20e95c23 13449else
d7040cdb
SE
13450 if test -n "$YACC"; then
13451 ac_cv_prog_YACC="$YACC" # Let the user override the test.
d6d788bd 13452else
d7040cdb
SE
13453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13454for as_dir in $PATH
13455do
13456 IFS=$as_save_IFS
13457 test -z "$as_dir" && as_dir=.
81ecdfbb 13458 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 13460 ac_cv_prog_YACC="$ac_prog"
81ecdfbb 13461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb 13462 break 2
20e95c23 13463 fi
d7040cdb 13464done
81ecdfbb
RW
13465 done
13466IFS=$as_save_IFS
20e95c23 13467
d7040cdb
SE
13468fi
13469fi
13470YACC=$ac_cv_prog_YACC
13471if test -n "$YACC"; then
81ecdfbb
RW
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
13473$as_echo "$YACC" >&6; }
d7040cdb 13474else
81ecdfbb
RW
13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13476$as_echo "no" >&6; }
d7040cdb 13477fi
20e95c23 13478
81ecdfbb 13479
d7040cdb
SE
13480 test -n "$YACC" && break
13481done
13482test -n "$YACC" || YACC="yacc"
20e95c23 13483
d7040cdb
SE
13484for ac_prog in flex lex
13485do
13486 # Extract the first word of "$ac_prog", so it can be a program name with args.
13487set dummy $ac_prog; ac_word=$2
81ecdfbb
RW
13488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13489$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13490if ${ac_cv_prog_LEX+:} false; then :
81ecdfbb 13491 $as_echo_n "(cached) " >&6
d6d788bd 13492else
d7040cdb
SE
13493 if test -n "$LEX"; then
13494 ac_cv_prog_LEX="$LEX" # Let the user override the test.
13495else
13496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497for as_dir in $PATH
13498do
13499 IFS=$as_save_IFS
13500 test -z "$as_dir" && as_dir=.
81ecdfbb 13501 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 13503 ac_cv_prog_LEX="$ac_prog"
81ecdfbb 13504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
13505 break 2
13506 fi
13507done
81ecdfbb
RW
13508 done
13509IFS=$as_save_IFS
20e95c23 13510
d7040cdb
SE
13511fi
13512fi
13513LEX=$ac_cv_prog_LEX
13514if test -n "$LEX"; then
81ecdfbb
RW
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
13516$as_echo "$LEX" >&6; }
20e95c23 13517else
81ecdfbb
RW
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13519$as_echo "no" >&6; }
13b2be9c
DJ
13520fi
13521
81ecdfbb 13522
d7040cdb
SE
13523 test -n "$LEX" && break
13524done
13525test -n "$LEX" || LEX=":"
20e95c23 13526
3d961d0d
AM
13527case "$LEX" in
13528 :|*"missing "*) ;;
13529 *) cat >conftest.l <<_ACEOF
81ecdfbb
RW
13530%%
13531a { ECHO; }
13532b { REJECT; }
13533c { yymore (); }
13534d { yyless (1); }
d0ac1c44
SM
13535e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
13536 yyless ((input () != 0)); }
81ecdfbb
RW
13537f { unput (yytext[0]); }
13538. { BEGIN INITIAL; }
13539%%
13540#ifdef YYTEXT_POINTER
13541extern char *yytext;
d7040cdb 13542#endif
d7040cdb 13543int
81ecdfbb 13544main (void)
d7040cdb 13545{
81ecdfbb 13546 return ! yylex () + ! yywrap ();
d7040cdb
SE
13547}
13548_ACEOF
81ecdfbb
RW
13549{ { ac_try="$LEX conftest.l"
13550case "(($ac_try" in
13551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13552 *) ac_try_echo=$ac_try;;
13553esac
13554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13555$as_echo "$ac_try_echo"; } >&5
13556 (eval "$LEX conftest.l") 2>&5
d7040cdb 13557 ac_status=$?
81ecdfbb
RW
13558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13559 test $ac_status = 0; }
13560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
13561$as_echo_n "checking lex output file root... " >&6; }
d0ac1c44 13562if ${ac_cv_prog_lex_root+:} false; then :
81ecdfbb 13563 $as_echo_n "(cached) " >&6
d7040cdb 13564else
d5fbea21 13565
81ecdfbb
RW
13566if test -f lex.yy.c; then
13567 ac_cv_prog_lex_root=lex.yy
13568elif test -f lexyy.c; then
13569 ac_cv_prog_lex_root=lexyy
13570else
d0ac1c44 13571 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
d6d788bd 13572fi
d7040cdb 13573fi
81ecdfbb
RW
13574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
13575$as_echo "$ac_cv_prog_lex_root" >&6; }
13576LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
d7040cdb 13577
81ecdfbb
RW
13578if test -z "${LEXLIB+set}"; then
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
13580$as_echo_n "checking lex library... " >&6; }
d0ac1c44 13581if ${ac_cv_lib_lex+:} false; then :
81ecdfbb 13582 $as_echo_n "(cached) " >&6
d7040cdb 13583else
d7040cdb 13584
81ecdfbb
RW
13585 ac_save_LIBS=$LIBS
13586 ac_cv_lib_lex='none needed'
13587 for ac_lib in '' -lfl -ll; do
13588 LIBS="$ac_lib $ac_save_LIBS"
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590/* end confdefs.h. */
13591`cat $LEX_OUTPUT_ROOT.c`
13592_ACEOF
13593if ac_fn_c_try_link "$LINENO"; then :
13594 ac_cv_lib_lex=$ac_lib
d7040cdb 13595fi
81ecdfbb
RW
13596rm -f core conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext conftest.$ac_ext
13598 test "$ac_cv_lib_lex" != 'none needed' && break
13599 done
13600 LIBS=$ac_save_LIBS
d7040cdb
SE
13601
13602fi
81ecdfbb
RW
13603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
13604$as_echo "$ac_cv_lib_lex" >&6; }
13605 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
d7040cdb
SE
13606fi
13607
13b2be9c 13608
81ecdfbb
RW
13609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
13610$as_echo_n "checking whether yytext is a pointer... " >&6; }
d0ac1c44 13611if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
81ecdfbb 13612 $as_echo_n "(cached) " >&6
d7040cdb
SE
13613else
13614 # POSIX says lex can declare yytext either as a pointer or an array; the
81ecdfbb 13615# default is implementation-dependent. Figure out which it is, since
d7040cdb
SE
13616# not all implementations provide the %pointer and %array declarations.
13617ac_cv_prog_lex_yytext_pointer=no
d7040cdb 13618ac_save_LIBS=$LIBS
81ecdfbb
RW
13619LIBS="$LEXLIB $ac_save_LIBS"
13620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13621/* end confdefs.h. */
d0ac1c44
SM
13622
13623 #define YYTEXT_POINTER 1
d7040cdb 13624`cat $LEX_OUTPUT_ROOT.c`
13b2be9c 13625_ACEOF
81ecdfbb 13626if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 13627 ac_cv_prog_lex_yytext_pointer=yes
13b2be9c 13628fi
81ecdfbb
RW
13629rm -f core conftest.err conftest.$ac_objext \
13630 conftest$ac_exeext conftest.$ac_ext
d7040cdb 13631LIBS=$ac_save_LIBS
252b5132 13632
9b2b7d69 13633fi
81ecdfbb
RW
13634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
13635$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
d7040cdb 13636if test $ac_cv_prog_lex_yytext_pointer = yes; then
13b2be9c 13637
81ecdfbb 13638$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
9b2b7d69 13639
d6d788bd 13640fi
81ecdfbb 13641rm -f conftest.l $LEX_OUTPUT_ROOT.c
3d961d0d
AM
13642 ;;
13643esac
d7040cdb
SE
13644if test "$LEX" = :; then
13645 LEX=${am_missing_run}flex
13646fi
13647
e184813f 13648ALL_LINGUAS="es fi fr id ja ru rw sv tr uk zh_CN"
d7040cdb
SE
13649# If we haven't got the data from the intl directory,
13650# assume NLS is disabled.
13651USE_NLS=no
13652LIBINTL=
13653LIBINTL_DEP=
13654INCINTL=
13655XGETTEXT=
13656GMSGFMT=
13657POSUB=
13658
13659if test -f ../intl/config.intl; then
13660 . ../intl/config.intl
13661fi
81ecdfbb
RW
13662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13663$as_echo_n "checking whether NLS is requested... " >&6; }
d7040cdb 13664if test x"$USE_NLS" != xyes; then
81ecdfbb
RW
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13666$as_echo "no" >&6; }
d7040cdb 13667else
81ecdfbb
RW
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13669$as_echo "yes" >&6; }
d7040cdb 13670
81ecdfbb 13671$as_echo "#define ENABLE_NLS 1" >>confdefs.h
d7040cdb
SE
13672
13673
81ecdfbb
RW
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
13675$as_echo_n "checking for catalogs to be installed... " >&6; }
d7040cdb
SE
13676 # Look for .po and .gmo files in the source directory.
13677 CATALOGS=
13678 XLINGUAS=
13679 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
13680 # If there aren't any .gmo files the shell will give us the
13681 # literal string "../path/to/srcdir/po/*.gmo" which has to be
13682 # weeded out.
13683 case "$cat" in *\**)
13684 continue;;
13685 esac
13686 # The quadruple backslash is collapsed to a double backslash
13687 # by the backticks, then collapsed again by the double quotes,
13688 # leaving us with one backslash in the sed expression (right
13689 # before the dot that mustn't act as a wildcard).
13690 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
13691 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
13692 # The user is allowed to set LINGUAS to a list of languages to
13693 # install catalogs for. If it's empty that means "all of them."
13694 if test "x$LINGUAS" = x; then
13695 CATALOGS="$CATALOGS $cat"
13696 XLINGUAS="$XLINGUAS $lang"
13697 else
13698 case "$LINGUAS" in *$lang*)
13699 CATALOGS="$CATALOGS $cat"
13700 XLINGUAS="$XLINGUAS $lang"
13701 ;;
13702 esac
13703 fi
13704 done
13705 LINGUAS="$XLINGUAS"
81ecdfbb
RW
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
13707$as_echo "$LINGUAS" >&6; }
d7040cdb
SE
13708
13709
13710 DATADIRNAME=share
13711
13712 INSTOBJEXT=.mo
13713
13714 GENCAT=gencat
13715
13716 CATOBJEXT=.gmo
13717
13718fi
13719
13720 MKINSTALLDIRS=
13721 if test -n "$ac_aux_dir"; then
13722 case "$ac_aux_dir" in
13723 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13724 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13725 esac
13726 fi
13727 if test -z "$MKINSTALLDIRS"; then
13728 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13729 fi
13730
13731
13732
81ecdfbb
RW
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
13734$as_echo_n "checking whether NLS is requested... " >&6; }
13735 # Check whether --enable-nls was given.
13736if test "${enable_nls+set}" = set; then :
13737 enableval=$enable_nls; USE_NLS=$enableval
d7040cdb
SE
13738else
13739 USE_NLS=yes
81ecdfbb
RW
13740fi
13741
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
13743$as_echo "$USE_NLS" >&6; }
d7040cdb
SE
13744
13745
13746
13747
13748
13749
13750# Prepare PATH_SEPARATOR.
13751# The user is always right.
13752if test "${PATH_SEPARATOR+set}" != set; then
13753 echo "#! /bin/sh" >conf$$.sh
13754 echo "exit 0" >>conf$$.sh
13755 chmod +x conf$$.sh
13756 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13757 PATH_SEPARATOR=';'
13b2be9c 13758 else
d7040cdb 13759 PATH_SEPARATOR=:
13b2be9c 13760 fi
d7040cdb 13761 rm -f conf$$.sh
252b5132 13762fi
13b2be9c 13763
d7040cdb
SE
13764# Find out how to test for executable files. Don't use a zero-byte file,
13765# as systems may use methods other than mode bits to determine executability.
13766cat >conf$$.file <<_ASEOF
13767#! /bin/sh
13768exit 0
13769_ASEOF
13770chmod +x conf$$.file
13771if test -x conf$$.file >/dev/null 2>&1; then
13772 ac_executable_p="test -x"
13773else
13774 ac_executable_p="test -f"
13b2be9c 13775fi
d7040cdb 13776rm -f conf$$.file
13b2be9c 13777
d7040cdb
SE
13778# Extract the first word of "msgfmt", so it can be a program name with args.
13779set dummy msgfmt; ac_word=$2
81ecdfbb
RW
13780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13781$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13782if ${ac_cv_path_MSGFMT+:} false; then :
81ecdfbb 13783 $as_echo_n "(cached) " >&6
252b5132 13784else
d7040cdb
SE
13785 case "$MSGFMT" in
13786 [\\/]* | ?:[\\/]*)
13787 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13788 ;;
13789 *)
13790 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13791 for ac_dir in $PATH; do
13792 IFS="$ac_save_IFS"
13793 test -z "$ac_dir" && ac_dir=.
13794 for ac_exec_ext in '' $ac_executable_extensions; do
13795 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13796 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
13797 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
13798 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
13799 break 2
13800 fi
13801 fi
13802 done
13803 done
13804 IFS="$ac_save_IFS"
13805 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13806 ;;
13807esac
252b5132 13808fi
d7040cdb
SE
13809MSGFMT="$ac_cv_path_MSGFMT"
13810if test "$MSGFMT" != ":"; then
81ecdfbb
RW
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
13812$as_echo "$MSGFMT" >&6; }
252b5132 13813else
81ecdfbb
RW
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815$as_echo "no" >&6; }
252b5132 13816fi
252b5132 13817
d7040cdb
SE
13818 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13819set dummy gmsgfmt; ac_word=$2
81ecdfbb
RW
13820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13821$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13822if ${ac_cv_path_GMSGFMT+:} false; then :
81ecdfbb 13823 $as_echo_n "(cached) " >&6
13b2be9c 13824else
d7040cdb
SE
13825 case $GMSGFMT in
13826 [\\/]* | ?:[\\/]*)
13827 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13828 ;;
13829 *)
13830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831for as_dir in $PATH
13832do
13833 IFS=$as_save_IFS
13834 test -z "$as_dir" && as_dir=.
81ecdfbb 13835 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 13836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d7040cdb 13837 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
81ecdfbb 13838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
d7040cdb
SE
13839 break 2
13840 fi
13841done
81ecdfbb
RW
13842 done
13843IFS=$as_save_IFS
252b5132 13844
d7040cdb
SE
13845 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13846 ;;
13847esac
13848fi
13849GMSGFMT=$ac_cv_path_GMSGFMT
d7040cdb 13850if test -n "$GMSGFMT"; then
81ecdfbb
RW
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
13852$as_echo "$GMSGFMT" >&6; }
ac48eca1 13853else
81ecdfbb
RW
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13855$as_echo "no" >&6; }
6840198f 13856fi
6840198f 13857
13b2be9c 13858
20e95c23 13859
81ecdfbb 13860
d7040cdb
SE
13861# Prepare PATH_SEPARATOR.
13862# The user is always right.
13863if test "${PATH_SEPARATOR+set}" != set; then
13864 echo "#! /bin/sh" >conf$$.sh
13865 echo "exit 0" >>conf$$.sh
13866 chmod +x conf$$.sh
13867 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13868 PATH_SEPARATOR=';'
13869 else
13870 PATH_SEPARATOR=:
13871 fi
13872 rm -f conf$$.sh
13873fi
20e95c23 13874
d7040cdb
SE
13875# Find out how to test for executable files. Don't use a zero-byte file,
13876# as systems may use methods other than mode bits to determine executability.
13877cat >conf$$.file <<_ASEOF
13878#! /bin/sh
13879exit 0
13880_ASEOF
13881chmod +x conf$$.file
13882if test -x conf$$.file >/dev/null 2>&1; then
13883 ac_executable_p="test -x"
13b2be9c 13884else
d7040cdb 13885 ac_executable_p="test -f"
13b2be9c 13886fi
d7040cdb 13887rm -f conf$$.file
20e95c23 13888
d7040cdb
SE
13889# Extract the first word of "xgettext", so it can be a program name with args.
13890set dummy xgettext; ac_word=$2
81ecdfbb
RW
13891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13892$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13893if ${ac_cv_path_XGETTEXT+:} false; then :
81ecdfbb 13894 $as_echo_n "(cached) " >&6
252b5132 13895else
d7040cdb
SE
13896 case "$XGETTEXT" in
13897 [\\/]* | ?:[\\/]*)
13898 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13899 ;;
13900 *)
13901 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13902 for ac_dir in $PATH; do
13903 IFS="$ac_save_IFS"
13904 test -z "$ac_dir" && ac_dir=.
13905 for ac_exec_ext in '' $ac_executable_extensions; do
13906 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13907 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
13908 (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
13909 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
13910 break 2
13911 fi
13912 fi
13913 done
13914 done
13915 IFS="$ac_save_IFS"
13916 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13917 ;;
13918esac
13b2be9c 13919fi
d7040cdb
SE
13920XGETTEXT="$ac_cv_path_XGETTEXT"
13921if test "$XGETTEXT" != ":"; then
81ecdfbb
RW
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
13923$as_echo "$XGETTEXT" >&6; }
d7040cdb 13924else
81ecdfbb
RW
13925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926$as_echo "no" >&6; }
13b2be9c 13927fi
13b2be9c 13928
d7040cdb 13929 rm -f messages.po
20e95c23 13930
13b2be9c 13931
d7040cdb
SE
13932# Prepare PATH_SEPARATOR.
13933# The user is always right.
13934if test "${PATH_SEPARATOR+set}" != set; then
13935 echo "#! /bin/sh" >conf$$.sh
13936 echo "exit 0" >>conf$$.sh
13937 chmod +x conf$$.sh
13938 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13939 PATH_SEPARATOR=';'
13940 else
13941 PATH_SEPARATOR=:
13942 fi
13943 rm -f conf$$.sh
252b5132 13944fi
20e95c23 13945
d7040cdb
SE
13946# Find out how to test for executable files. Don't use a zero-byte file,
13947# as systems may use methods other than mode bits to determine executability.
13948cat >conf$$.file <<_ASEOF
13949#! /bin/sh
13950exit 0
13951_ASEOF
13952chmod +x conf$$.file
13953if test -x conf$$.file >/dev/null 2>&1; then
13954 ac_executable_p="test -x"
252b5132 13955else
d7040cdb
SE
13956 ac_executable_p="test -f"
13957fi
13958rm -f conf$$.file
20e95c23 13959
d7040cdb
SE
13960# Extract the first word of "msgmerge", so it can be a program name with args.
13961set dummy msgmerge; ac_word=$2
81ecdfbb
RW
13962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13963$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 13964if ${ac_cv_path_MSGMERGE+:} false; then :
81ecdfbb 13965 $as_echo_n "(cached) " >&6
20e95c23 13966else
d7040cdb
SE
13967 case "$MSGMERGE" in
13968 [\\/]* | ?:[\\/]*)
13969 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
13970 ;;
13971 *)
13972 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
13973 for ac_dir in $PATH; do
13974 IFS="$ac_save_IFS"
13975 test -z "$ac_dir" && ac_dir=.
13976 for ac_exec_ext in '' $ac_executable_extensions; do
13977 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
13978 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
13979 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
13980 break 2
13981 fi
13982 fi
13983 done
13984 done
13985 IFS="$ac_save_IFS"
13986 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
13987 ;;
13988esac
20e95c23 13989fi
d7040cdb
SE
13990MSGMERGE="$ac_cv_path_MSGMERGE"
13991if test "$MSGMERGE" != ":"; then
81ecdfbb
RW
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
13993$as_echo "$MSGMERGE" >&6; }
d7040cdb 13994else
81ecdfbb
RW
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13996$as_echo "no" >&6; }
20e95c23 13997fi
252b5132 13998
252b5132 13999
d7040cdb
SE
14000 if test "$GMSGFMT" != ":"; then
14001 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
14002 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
14003 : ;
14004 else
14005 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
81ecdfbb
RW
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
14007$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
d7040cdb
SE
14008 GMSGFMT=":"
14009 fi
14010 fi
13b2be9c 14011
d7040cdb
SE
14012 if test "$XGETTEXT" != ":"; then
14013 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
14014 (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
14015 : ;
14016 else
81ecdfbb
RW
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
14018$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
d7040cdb
SE
14019 XGETTEXT=":"
14020 fi
14021 rm -f messages.po
14022 fi
252b5132 14023
81ecdfbb 14024 ac_config_commands="$ac_config_commands default-1"
13b2be9c 14025
13b2be9c 14026
81ecdfbb
RW
14027
14028
14029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14030$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14031 # Check whether --enable-maintainer-mode was given.
14032if test "${enable_maintainer_mode+set}" = set; then :
14033 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
9b2b7d69 14034else
81ecdfbb 14035 USE_MAINTAINER_MODE=no
13b2be9c 14036fi
13b2be9c 14037
81ecdfbb
RW
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14039$as_echo "$USE_MAINTAINER_MODE" >&6; }
14040 if test $USE_MAINTAINER_MODE = yes; then
14041 MAINTAINER_MODE_TRUE=
14042 MAINTAINER_MODE_FALSE='#'
14043else
14044 MAINTAINER_MODE_TRUE='#'
14045 MAINTAINER_MODE_FALSE=
13b2be9c 14046fi
13b2be9c 14047
81ecdfbb
RW
14048 MAINT=$MAINTAINER_MODE_TRUE
14049
14050
14051 if false; then
14052 GENINSRC_NEVER_TRUE=
14053 GENINSRC_NEVER_FALSE='#'
13b2be9c 14054else
81ecdfbb
RW
14055 GENINSRC_NEVER_TRUE='#'
14056 GENINSRC_NEVER_FALSE=
252b5132 14057fi
13b2be9c 14058
81ecdfbb
RW
14059
14060
58797674 14061for ac_header in string.h stdlib.h memory.h strings.h unistd.h errno.h sys/types.h limits.h locale.h time.h sys/stat.h
81ecdfbb
RW
14062do :
14063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14064ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d0ac1c44 14065if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13b2be9c 14066 cat >>confdefs.h <<_ACEOF
81ecdfbb 14067#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13b2be9c
DJ
14068_ACEOF
14069
252b5132 14070fi
13b2be9c 14071
252b5132
RH
14072done
14073
df7b86aa
NC
14074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14075$as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
d0ac1c44 14076if ${gcc_cv_header_string+:} false; then :
df7b86aa
NC
14077 $as_echo_n "(cached) " >&6
14078else
14079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14080/* end confdefs.h. */
14081#include <string.h>
14082#include <strings.h>
14083int
14084main ()
14085{
14086
14087 ;
14088 return 0;
14089}
14090_ACEOF
14091if ac_fn_c_try_compile "$LINENO"; then :
14092 gcc_cv_header_string=yes
14093else
14094 gcc_cv_header_string=no
14095fi
14096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14097fi
14098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14099$as_echo "$gcc_cv_header_string" >&6; }
14100if test $gcc_cv_header_string = yes; then
14101
14102$as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14103
14104fi
14105
d6d788bd 14106
252b5132
RH
14107# Put this here so that autoconf's "cross-compiling" message doesn't confuse
14108# people who are not cross-compiling but are compiling cross-assemblers.
81ecdfbb
RW
14109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling a cross-assembler" >&5
14110$as_echo_n "checking whether compiling a cross-assembler... " >&6; }
252b5132
RH
14111if test "${host}" = "${target}"; then
14112 cross_gas=no
14113else
14114 cross_gas=yes
13b2be9c 14115
81ecdfbb 14116$as_echo "#define CROSS_COMPILE 1" >>confdefs.h
252b5132
RH
14117
14118fi
81ecdfbb
RW
14119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_gas" >&5
14120$as_echo "$cross_gas" >&6; }
252b5132 14121
d0ac1c44
SM
14122ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14123if test "x$ac_cv_type_size_t" = xyes; then :
14124
14125else
14126
14127cat >>confdefs.h <<_ACEOF
14128#define size_t unsigned int
14129_ACEOF
14130
14131fi
14132
252b5132
RH
14133# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14134# for constant arguments. Useless!
81ecdfbb
RW
14135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14136$as_echo_n "checking for working alloca.h... " >&6; }
d0ac1c44 14137if ${ac_cv_working_alloca_h+:} false; then :
81ecdfbb 14138 $as_echo_n "(cached) " >&6
13b2be9c 14139else
81ecdfbb 14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14141/* end confdefs.h. */
252b5132 14142#include <alloca.h>
13b2be9c
DJ
14143int
14144main ()
14145{
14146char *p = (char *) alloca (2 * sizeof (int));
81ecdfbb 14147 if (p) return 0;
13b2be9c
DJ
14148 ;
14149 return 0;
14150}
14151_ACEOF
81ecdfbb 14152if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
14153 ac_cv_working_alloca_h=yes
14154else
81ecdfbb 14155 ac_cv_working_alloca_h=no
13b2be9c 14156fi
81ecdfbb
RW
14157rm -f core conftest.err conftest.$ac_objext \
14158 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14159fi
81ecdfbb
RW
14160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14161$as_echo "$ac_cv_working_alloca_h" >&6; }
13b2be9c
DJ
14162if test $ac_cv_working_alloca_h = yes; then
14163
81ecdfbb 14164$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
252b5132
RH
14165
14166fi
14167
81ecdfbb
RW
14168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14169$as_echo_n "checking for alloca... " >&6; }
d0ac1c44 14170if ${ac_cv_func_alloca_works+:} false; then :
81ecdfbb 14171 $as_echo_n "(cached) " >&6
252b5132 14172else
81ecdfbb 14173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14174/* end confdefs.h. */
252b5132
RH
14175#ifdef __GNUC__
14176# define alloca __builtin_alloca
14177#else
14178# ifdef _MSC_VER
14179# include <malloc.h>
14180# define alloca _alloca
14181# else
81ecdfbb 14182# ifdef HAVE_ALLOCA_H
252b5132
RH
14183# include <alloca.h>
14184# else
14185# ifdef _AIX
14186 #pragma alloca
14187# else
14188# ifndef alloca /* predefined by HP cc +Olibcalls */
d0ac1c44 14189void *alloca (size_t);
252b5132
RH
14190# endif
14191# endif
14192# endif
14193# endif
14194#endif
14195
13b2be9c
DJ
14196int
14197main ()
14198{
14199char *p = (char *) alloca (1);
81ecdfbb 14200 if (p) return 0;
13b2be9c
DJ
14201 ;
14202 return 0;
14203}
14204_ACEOF
81ecdfbb 14205if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
14206 ac_cv_func_alloca_works=yes
14207else
81ecdfbb 14208 ac_cv_func_alloca_works=no
252b5132 14209fi
81ecdfbb
RW
14210rm -f core conftest.err conftest.$ac_objext \
14211 conftest$ac_exeext conftest.$ac_ext
252b5132 14212fi
81ecdfbb
RW
14213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14214$as_echo "$ac_cv_func_alloca_works" >&6; }
252b5132 14215
252b5132 14216if test $ac_cv_func_alloca_works = yes; then
9b2b7d69 14217
81ecdfbb 14218$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
9b2b7d69 14219
13b2be9c 14220else
c8615825 14221 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13b2be9c
DJ
14222# that cause trouble. Some versions do not even contain alloca or
14223# contain a buggy version. If you still want to use their alloca,
14224# use ar to extract alloca.o from them instead of compiling alloca.c.
14225
81ecdfbb 14226ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13b2be9c 14227
81ecdfbb 14228$as_echo "#define C_ALLOCA 1" >>confdefs.h
252b5132 14229
d6d788bd 14230
81ecdfbb
RW
14231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14232$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
d0ac1c44 14233if ${ac_cv_os_cray+:} false; then :
81ecdfbb 14234 $as_echo_n "(cached) " >&6
252b5132 14235else
81ecdfbb 14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14237/* end confdefs.h. */
81ecdfbb 14238#if defined CRAY && ! defined CRAY2
252b5132
RH
14239webecray
14240#else
14241wenotbecray
14242#endif
14243
13b2be9c 14244_ACEOF
252b5132 14245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
81ecdfbb 14246 $EGREP "webecray" >/dev/null 2>&1; then :
252b5132
RH
14247 ac_cv_os_cray=yes
14248else
252b5132
RH
14249 ac_cv_os_cray=no
14250fi
14251rm -f conftest*
14252
14253fi
81ecdfbb
RW
14254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14255$as_echo "$ac_cv_os_cray" >&6; }
252b5132 14256if test $ac_cv_os_cray = yes; then
13b2be9c 14257 for ac_func in _getb67 GETB67 getb67; do
81ecdfbb
RW
14258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14259ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 14260if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13b2be9c
DJ
14261
14262cat >>confdefs.h <<_ACEOF
252b5132 14263#define CRAY_STACKSEG_END $ac_func
13b2be9c 14264_ACEOF
252b5132 14265
13b2be9c 14266 break
252b5132
RH
14267fi
14268
13b2be9c 14269 done
252b5132
RH
14270fi
14271
81ecdfbb
RW
14272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14273$as_echo_n "checking stack direction for C alloca... " >&6; }
d0ac1c44 14274if ${ac_cv_c_stack_direction+:} false; then :
81ecdfbb 14275 $as_echo_n "(cached) " >&6
252b5132 14276else
81ecdfbb 14277 if test "$cross_compiling" = yes; then :
252b5132
RH
14278 ac_cv_c_stack_direction=0
14279else
81ecdfbb 14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14281/* end confdefs.h. */
81ecdfbb 14282$ac_includes_default
13b2be9c 14283int
d0ac1c44 14284find_stack_direction (int *addr, int depth)
252b5132 14285{
d0ac1c44
SM
14286 int dir, dummy = 0;
14287 if (! addr)
14288 addr = &dummy;
14289 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14290 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14291 return dir + dummy;
252b5132 14292}
13b2be9c
DJ
14293
14294int
d0ac1c44 14295main (int argc, char **argv)
252b5132 14296{
d0ac1c44 14297 return find_stack_direction (0, argc + !argv + 20) < 0;
252b5132 14298}
13b2be9c 14299_ACEOF
81ecdfbb 14300if ac_fn_c_try_run "$LINENO"; then :
252b5132
RH
14301 ac_cv_c_stack_direction=1
14302else
81ecdfbb 14303 ac_cv_c_stack_direction=-1
252b5132 14304fi
81ecdfbb
RW
14305rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14306 conftest.$ac_objext conftest.beam conftest.$ac_ext
252b5132 14307fi
252b5132 14308
81ecdfbb
RW
14309fi
14310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14311$as_echo "$ac_cv_c_stack_direction" >&6; }
13b2be9c 14312cat >>confdefs.h <<_ACEOF
252b5132 14313#define STACK_DIRECTION $ac_cv_c_stack_direction
13b2be9c
DJ
14314_ACEOF
14315
252b5132
RH
14316
14317fi
14318
81ecdfbb
RW
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14320$as_echo_n "checking for inline... " >&6; }
d0ac1c44 14321if ${ac_cv_c_inline+:} false; then :
81ecdfbb 14322 $as_echo_n "(cached) " >&6
252b5132
RH
14323else
14324 ac_cv_c_inline=no
14325for ac_kw in inline __inline__ __inline; do
81ecdfbb 14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14327/* end confdefs.h. */
14328#ifndef __cplusplus
14329typedef int foo_t;
14330static $ac_kw foo_t static_foo () {return 0; }
14331$ac_kw foo_t foo () {return 0; }
14332#endif
252b5132 14333
13b2be9c 14334_ACEOF
81ecdfbb
RW
14335if ac_fn_c_try_compile "$LINENO"; then :
14336 ac_cv_c_inline=$ac_kw
252b5132 14337fi
81ecdfbb
RW
14338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14339 test "$ac_cv_c_inline" != no && break
252b5132
RH
14340done
14341
14342fi
81ecdfbb
RW
14343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14344$as_echo "$ac_cv_c_inline" >&6; }
ab509236 14345
13b2be9c 14346case $ac_cv_c_inline in
252b5132 14347 inline | yes) ;;
ab509236
L
14348 *)
14349 case $ac_cv_c_inline in
14350 no) ac_val=;;
14351 *) ac_val=$ac_cv_c_inline;;
14352 esac
14353 cat >>confdefs.h <<_ACEOF
14354#ifndef __cplusplus
14355#define inline $ac_val
14356#endif
13b2be9c 14357_ACEOF
ab509236 14358 ;;
252b5132
RH
14359esac
14360
6840198f 14361
d6d788bd 14362# VMS doesn't have unlink.
252b5132 14363for ac_func in unlink remove
81ecdfbb
RW
14364do :
14365 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14366ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 14367if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13b2be9c 14368 cat >>confdefs.h <<_ACEOF
81ecdfbb 14369#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 14370_ACEOF
252b5132 14371 break
252b5132
RH
14372fi
14373done
14374
4b0296ce 14375for ac_func in sbrk setlocale
81ecdfbb 14376do :
a574142b
AM
14377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14378ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d0ac1c44 14379if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13b2be9c 14380 cat >>confdefs.h <<_ACEOF
a574142b 14381#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13b2be9c 14382_ACEOF
252b5132 14383
1ec4b9f2
NS
14384fi
14385done
14386
14387for ac_func in strsignal
14388do :
14389 ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal"
d0ac1c44 14390if test "x$ac_cv_func_strsignal" = xyes; then :
1ec4b9f2
NS
14391 cat >>confdefs.h <<_ACEOF
14392#define HAVE_STRSIGNAL 1
14393_ACEOF
14394
252b5132
RH
14395fi
14396done
14397
d6d788bd 14398
44350750
NC
14399
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
14401$as_echo_n "checking for LC_MESSAGES... " >&6; }
d0ac1c44 14402if ${am_cv_val_LC_MESSAGES+:} false; then :
44350750
NC
14403 $as_echo_n "(cached) " >&6
14404else
14405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14406/* end confdefs.h. */
14407#include <locale.h>
14408int
14409main ()
14410{
14411return LC_MESSAGES
14412 ;
14413 return 0;
14414}
14415_ACEOF
14416if ac_fn_c_try_link "$LINENO"; then :
14417 am_cv_val_LC_MESSAGES=yes
14418else
14419 am_cv_val_LC_MESSAGES=no
14420fi
14421rm -f core conftest.err conftest.$ac_objext \
14422 conftest$ac_exeext conftest.$ac_ext
14423fi
14424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
14425$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
14426 if test $am_cv_val_LC_MESSAGES = yes; then
14427
14428$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
14429
14430 fi
14431
14432
39bec121
TW
14433# do we need the math library?
14434case "${need_libm}" in
13b2be9c 14435yes)
39bec121 14436 LIBM=
f9c19112 14437case $host in
3725885a 14438*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
d7040cdb 14439 # These system don't have libm, or don't need it
39bec121
TW
14440 ;;
14441*-ncr-sysv4.3*)
81ecdfbb
RW
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14443$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
d0ac1c44 14444if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then :
81ecdfbb 14445 $as_echo_n "(cached) " >&6
39bec121 14446else
13b2be9c 14447 ac_check_lib_save_LIBS=$LIBS
39bec121 14448LIBS="-lmw $LIBS"
81ecdfbb 14449cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14450/* end confdefs.h. */
14451
81ecdfbb
RW
14452/* Override any GCC internal prototype to avoid an error.
14453 Use char because int might match the return type of a GCC
14454 builtin and then its argument prototype would still apply. */
13b2be9c
DJ
14455#ifdef __cplusplus
14456extern "C"
14457#endif
13b2be9c
DJ
14458char _mwvalidcheckl ();
14459int
14460main ()
14461{
81ecdfbb 14462return _mwvalidcheckl ();
13b2be9c
DJ
14463 ;
14464 return 0;
14465}
14466_ACEOF
81ecdfbb 14467if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
14468 ac_cv_lib_mw__mwvalidcheckl=yes
14469else
81ecdfbb 14470 ac_cv_lib_mw__mwvalidcheckl=no
13b2be9c 14471fi
81ecdfbb
RW
14472rm -f core conftest.err conftest.$ac_objext \
14473 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14474LIBS=$ac_check_lib_save_LIBS
14475fi
81ecdfbb
RW
14476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14477$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
d0ac1c44 14478if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then :
39bec121 14479 LIBM="-lmw"
39bec121
TW
14480fi
14481
81ecdfbb
RW
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14483$as_echo_n "checking for cos in -lm... " >&6; }
d0ac1c44 14484if ${ac_cv_lib_m_cos+:} false; then :
81ecdfbb 14485 $as_echo_n "(cached) " >&6
39bec121 14486else
13b2be9c 14487 ac_check_lib_save_LIBS=$LIBS
39bec121 14488LIBS="-lm $LIBS"
81ecdfbb 14489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14490/* end confdefs.h. */
39bec121 14491
81ecdfbb
RW
14492/* Override any GCC internal prototype to avoid an error.
14493 Use char because int might match the return type of a GCC
14494 builtin and then its argument prototype would still apply. */
d7040cdb
SE
14495#ifdef __cplusplus
14496extern "C"
14497#endif
d7040cdb 14498char cos ();
13b2be9c
DJ
14499int
14500main ()
14501{
81ecdfbb 14502return cos ();
13b2be9c
DJ
14503 ;
14504 return 0;
14505}
14506_ACEOF
81ecdfbb 14507if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 14508 ac_cv_lib_m_cos=yes
13b2be9c 14509else
81ecdfbb 14510 ac_cv_lib_m_cos=no
13b2be9c 14511fi
81ecdfbb
RW
14512rm -f core conftest.err conftest.$ac_objext \
14513 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14514LIBS=$ac_check_lib_save_LIBS
14515fi
81ecdfbb
RW
14516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14517$as_echo "$ac_cv_lib_m_cos" >&6; }
d0ac1c44 14518if test "x$ac_cv_lib_m_cos" = xyes; then :
39bec121 14519 LIBM="$LIBM -lm"
39bec121
TW
14520fi
14521
14522 ;;
14523*)
81ecdfbb
RW
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14525$as_echo_n "checking for cos in -lm... " >&6; }
d0ac1c44 14526if ${ac_cv_lib_m_cos+:} false; then :
81ecdfbb 14527 $as_echo_n "(cached) " >&6
39bec121 14528else
13b2be9c 14529 ac_check_lib_save_LIBS=$LIBS
39bec121 14530LIBS="-lm $LIBS"
81ecdfbb 14531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14532/* end confdefs.h. */
39bec121 14533
81ecdfbb
RW
14534/* Override any GCC internal prototype to avoid an error.
14535 Use char because int might match the return type of a GCC
14536 builtin and then its argument prototype would still apply. */
d7040cdb
SE
14537#ifdef __cplusplus
14538extern "C"
14539#endif
d7040cdb 14540char cos ();
13b2be9c
DJ
14541int
14542main ()
14543{
81ecdfbb 14544return cos ();
13b2be9c
DJ
14545 ;
14546 return 0;
14547}
14548_ACEOF
81ecdfbb 14549if ac_fn_c_try_link "$LINENO"; then :
d7040cdb 14550 ac_cv_lib_m_cos=yes
13b2be9c 14551else
81ecdfbb 14552 ac_cv_lib_m_cos=no
13b2be9c 14553fi
81ecdfbb
RW
14554rm -f core conftest.err conftest.$ac_objext \
14555 conftest$ac_exeext conftest.$ac_ext
13b2be9c
DJ
14556LIBS=$ac_check_lib_save_LIBS
14557fi
81ecdfbb
RW
14558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14559$as_echo "$ac_cv_lib_m_cos" >&6; }
d0ac1c44 14560if test "x$ac_cv_lib_m_cos" = xyes; then :
39bec121 14561 LIBM="-lm"
39bec121
TW
14562fi
14563
14564 ;;
14565esac
14566
13b2be9c 14567
d7040cdb 14568
39bec121
TW
14569 ;;
14570esac
14571
252b5132
RH
14572# Some non-ANSI preprocessors botch requoting inside strings. That's bad
14573# enough, but on some of those systems, the assert macro relies on requoting
14574# working properly!
81ecdfbb
RW
14575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working assert macro" >&5
14576$as_echo_n "checking for working assert macro... " >&6; }
d0ac1c44 14577if ${gas_cv_assert_ok+:} false; then :
81ecdfbb 14578 $as_echo_n "(cached) " >&6
13b2be9c 14579else
81ecdfbb 14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14581/* end confdefs.h. */
252b5132
RH
14582#include <assert.h>
14583#include <stdio.h>
13b2be9c
DJ
14584int
14585main ()
14586{
252b5132
RH
14587
14588/* check for requoting problems */
14589static int a, b, c, d;
14590static char *s;
14591assert (!strcmp(s, "foo bar baz quux"));
14592/* check for newline handling */
14593assert (a == b
14594 || c == d);
14595
13b2be9c
DJ
14596 ;
14597 return 0;
81ecdfbb
RW
14598}
14599_ACEOF
14600if ac_fn_c_try_link "$LINENO"; then :
252b5132
RH
14601 gas_cv_assert_ok=yes
14602else
81ecdfbb 14603 gas_cv_assert_ok=no
252b5132 14604fi
81ecdfbb
RW
14605rm -f core conftest.err conftest.$ac_objext \
14606 conftest$ac_exeext conftest.$ac_ext
252b5132 14607fi
81ecdfbb
RW
14608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_assert_ok" >&5
14609$as_echo "$gas_cv_assert_ok" >&6; }
13b2be9c 14610test $gas_cv_assert_ok = yes ||
81ecdfbb 14611$as_echo "#define BROKEN_ASSERT 1" >>confdefs.h
252b5132 14612
d6d788bd
L
14613
14614
252b5132
RH
14615# On some systems, the system header files may not declare malloc, realloc,
14616# and free. There are places where gas needs these functions to have been
14617# declared -- such as when taking their addresses.
14618gas_test_headers="
14619#ifdef HAVE_MEMORY_H
14620#include <memory.h>
14621#endif
14622#ifdef HAVE_STRING_H
14623#include <string.h>
14624#else
14625#ifdef HAVE_STRINGS_H
14626#include <strings.h>
14627#endif
14628#endif
14629#ifdef HAVE_STDLIB_H
14630#include <stdlib.h>
14631#endif
14632#ifdef HAVE_UNISTD_H
14633#include <unistd.h>
14634#endif
14635"
14636
e8a38df5
AL
14637# Does errno.h declare errno, or do we have to add a separate declaration
14638# for it?
14639
81ecdfbb
RW
14640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for errno" >&5
14641$as_echo_n "checking whether declaration is required for errno... " >&6; }
d0ac1c44 14642if ${gas_cv_decl_needed_errno+:} false; then :
81ecdfbb 14643 $as_echo_n "(cached) " >&6
e8a38df5 14644else
81ecdfbb 14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e8a38df5
AL
14646/* end confdefs.h. */
14647
14648#ifdef HAVE_ERRNO_H
14649#include <errno.h>
14650#endif
14651
14652int
14653main ()
14654{
14655
14656typedef int f;
14657f x;
14658x = (f) errno;
14659
14660 ;
14661 return 0;
14662}
14663_ACEOF
81ecdfbb 14664if ac_fn_c_try_link "$LINENO"; then :
e8a38df5
AL
14665 gas_cv_decl_needed_errno=no
14666else
81ecdfbb 14667 gas_cv_decl_needed_errno=yes
e8a38df5 14668fi
81ecdfbb
RW
14669rm -f core conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext conftest.$ac_ext
e8a38df5 14671fi
81ecdfbb
RW
14672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_errno" >&5
14673$as_echo "$gas_cv_decl_needed_errno" >&6; }
e8a38df5
AL
14674if test $gas_cv_decl_needed_errno = yes; then
14675
81ecdfbb 14676$as_echo "#define NEED_DECLARATION_ERRNO 1" >>confdefs.h
e8a38df5
AL
14677
14678fi
14679
14680
81ecdfbb
RW
14681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a known getopt prototype in unistd.h" >&5
14682$as_echo_n "checking for a known getopt prototype in unistd.h... " >&6; }
d0ac1c44 14683if ${gas_cv_decl_getopt_unistd_h+:} false; then :
81ecdfbb 14684 $as_echo_n "(cached) " >&6
56f36663 14685else
81ecdfbb 14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
56f36663
NC
14687/* end confdefs.h. */
14688#include <unistd.h>
14689int
14690main ()
14691{
14692extern int getopt (int, char *const*, const char *);
14693 ;
14694 return 0;
14695}
14696_ACEOF
81ecdfbb 14697if ac_fn_c_try_compile "$LINENO"; then :
56f36663
NC
14698 gas_cv_decl_getopt_unistd_h=yes
14699else
81ecdfbb 14700 gas_cv_decl_getopt_unistd_h=no
56f36663 14701fi
81ecdfbb 14702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
56f36663
NC
14703fi
14704
81ecdfbb
RW
14705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_getopt_unistd_h" >&5
14706$as_echo "$gas_cv_decl_getopt_unistd_h" >&6; }
56f36663
NC
14707if test $gas_cv_decl_getopt_unistd_h = yes; then
14708
81ecdfbb 14709$as_echo "#define HAVE_DECL_GETOPT 1" >>confdefs.h
56f36663
NC
14710
14711fi
14712
e8a38df5 14713
81ecdfbb
RW
14714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for environ" >&5
14715$as_echo_n "checking whether declaration is required for environ... " >&6; }
d0ac1c44 14716if ${gas_cv_decl_needed_environ+:} false; then :
81ecdfbb 14717 $as_echo_n "(cached) " >&6
13b2be9c 14718else
81ecdfbb 14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14720/* end confdefs.h. */
252b5132 14721$gas_test_headers
13b2be9c
DJ
14722int
14723main ()
14724{
252b5132 14725
e8a38df5 14726typedef char **f;
252b5132 14727f x;
e8a38df5 14728x = (f) environ;
252b5132 14729
13b2be9c
DJ
14730 ;
14731 return 0;
14732}
14733_ACEOF
81ecdfbb 14734if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14735 gas_cv_decl_needed_environ=no
252b5132 14736else
81ecdfbb 14737 gas_cv_decl_needed_environ=yes
252b5132 14738fi
81ecdfbb
RW
14739rm -f core conftest.err conftest.$ac_objext \
14740 conftest$ac_exeext conftest.$ac_ext
252b5132 14741fi
81ecdfbb
RW
14742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_environ" >&5
14743$as_echo "$gas_cv_decl_needed_environ" >&6; }
e8a38df5 14744if test $gas_cv_decl_needed_environ = yes; then
13b2be9c 14745
81ecdfbb 14746$as_echo "#define NEED_DECLARATION_ENVIRON 1" >>confdefs.h
13b2be9c
DJ
14747
14748fi
14749
14750
81ecdfbb
RW
14751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for ffs" >&5
14752$as_echo_n "checking whether declaration is required for ffs... " >&6; }
d0ac1c44 14753if ${gas_cv_decl_needed_ffs+:} false; then :
81ecdfbb 14754 $as_echo_n "(cached) " >&6
13b2be9c 14755else
81ecdfbb 14756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14757/* end confdefs.h. */
14758$gas_test_headers
14759int
14760main ()
14761{
14762
e8a38df5 14763typedef int (*f)(int);
13b2be9c 14764f x;
e8a38df5 14765x = (f) ffs;
13b2be9c
DJ
14766
14767 ;
14768 return 0;
14769}
14770_ACEOF
81ecdfbb 14771if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14772 gas_cv_decl_needed_ffs=no
13b2be9c 14773else
81ecdfbb 14774 gas_cv_decl_needed_ffs=yes
13b2be9c 14775fi
81ecdfbb
RW
14776rm -f core conftest.err conftest.$ac_objext \
14777 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14778fi
81ecdfbb
RW
14779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_ffs" >&5
14780$as_echo "$gas_cv_decl_needed_ffs" >&6; }
e8a38df5 14781if test $gas_cv_decl_needed_ffs = yes; then
13b2be9c 14782
81ecdfbb 14783$as_echo "#define NEED_DECLARATION_FFS 1" >>confdefs.h
13b2be9c
DJ
14784
14785fi
14786
14787
81ecdfbb
RW
14788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for free" >&5
14789$as_echo_n "checking whether declaration is required for free... " >&6; }
d0ac1c44 14790if ${gas_cv_decl_needed_free+:} false; then :
81ecdfbb 14791 $as_echo_n "(cached) " >&6
13b2be9c 14792else
81ecdfbb 14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14794/* end confdefs.h. */
14795$gas_test_headers
14796int
14797main ()
14798{
14799
14800typedef void (*f)();
14801f x;
14802x = (f) free;
14803
14804 ;
14805 return 0;
14806}
14807_ACEOF
81ecdfbb 14808if ac_fn_c_try_link "$LINENO"; then :
13b2be9c
DJ
14809 gas_cv_decl_needed_free=no
14810else
81ecdfbb 14811 gas_cv_decl_needed_free=yes
13b2be9c 14812fi
81ecdfbb
RW
14813rm -f core conftest.err conftest.$ac_objext \
14814 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14815fi
81ecdfbb
RW
14816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_free" >&5
14817$as_echo "$gas_cv_decl_needed_free" >&6; }
13b2be9c
DJ
14818if test $gas_cv_decl_needed_free = yes; then
14819
81ecdfbb 14820$as_echo "#define NEED_DECLARATION_FREE 1" >>confdefs.h
13b2be9c
DJ
14821
14822fi
14823
14824
81ecdfbb
RW
14825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for malloc" >&5
14826$as_echo_n "checking whether declaration is required for malloc... " >&6; }
d0ac1c44 14827if ${gas_cv_decl_needed_malloc+:} false; then :
81ecdfbb 14828 $as_echo_n "(cached) " >&6
13b2be9c 14829else
81ecdfbb 14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14831/* end confdefs.h. */
14832$gas_test_headers
14833int
14834main ()
14835{
14836
14837typedef char *(*f)();
14838f x;
e8a38df5 14839x = (f) malloc;
13b2be9c
DJ
14840
14841 ;
14842 return 0;
14843}
14844_ACEOF
81ecdfbb 14845if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14846 gas_cv_decl_needed_malloc=no
13b2be9c 14847else
81ecdfbb 14848 gas_cv_decl_needed_malloc=yes
13b2be9c 14849fi
81ecdfbb
RW
14850rm -f core conftest.err conftest.$ac_objext \
14851 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14852fi
81ecdfbb
RW
14853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_malloc" >&5
14854$as_echo "$gas_cv_decl_needed_malloc" >&6; }
e8a38df5 14855if test $gas_cv_decl_needed_malloc = yes; then
13b2be9c 14856
81ecdfbb 14857$as_echo "#define NEED_DECLARATION_MALLOC 1" >>confdefs.h
13b2be9c
DJ
14858
14859fi
14860
14861
81ecdfbb
RW
14862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for sbrk" >&5
14863$as_echo_n "checking whether declaration is required for sbrk... " >&6; }
d0ac1c44 14864if ${gas_cv_decl_needed_sbrk+:} false; then :
81ecdfbb 14865 $as_echo_n "(cached) " >&6
13b2be9c 14866else
81ecdfbb 14867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c
DJ
14868/* end confdefs.h. */
14869$gas_test_headers
14870int
14871main ()
14872{
14873
e8a38df5 14874typedef char *(*f)();
13b2be9c 14875f x;
e8a38df5 14876x = (f) sbrk;
13b2be9c
DJ
14877
14878 ;
14879 return 0;
14880}
14881_ACEOF
81ecdfbb 14882if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14883 gas_cv_decl_needed_sbrk=no
13b2be9c 14884else
81ecdfbb 14885 gas_cv_decl_needed_sbrk=yes
13b2be9c 14886fi
81ecdfbb
RW
14887rm -f core conftest.err conftest.$ac_objext \
14888 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14889fi
81ecdfbb
RW
14890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_sbrk" >&5
14891$as_echo "$gas_cv_decl_needed_sbrk" >&6; }
e8a38df5 14892if test $gas_cv_decl_needed_sbrk = yes; then
13b2be9c 14893
81ecdfbb 14894$as_echo "#define NEED_DECLARATION_SBRK 1" >>confdefs.h
13b2be9c
DJ
14895
14896fi
14897
14898
81ecdfbb
RW
14899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether declaration is required for strstr" >&5
14900$as_echo_n "checking whether declaration is required for strstr... " >&6; }
d0ac1c44 14901if ${gas_cv_decl_needed_strstr+:} false; then :
81ecdfbb 14902 $as_echo_n "(cached) " >&6
13b2be9c 14903else
81ecdfbb 14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13b2be9c 14905/* end confdefs.h. */
e8a38df5 14906$gas_test_headers
13b2be9c
DJ
14907int
14908main ()
14909{
14910
e8a38df5 14911typedef char *(*f)();
13b2be9c 14912f x;
e8a38df5 14913x = (f) strstr;
13b2be9c
DJ
14914
14915 ;
14916 return 0;
14917}
14918_ACEOF
81ecdfbb 14919if ac_fn_c_try_link "$LINENO"; then :
e8a38df5 14920 gas_cv_decl_needed_strstr=no
13b2be9c 14921else
81ecdfbb 14922 gas_cv_decl_needed_strstr=yes
13b2be9c 14923fi
81ecdfbb
RW
14924rm -f core conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext conftest.$ac_ext
13b2be9c 14926fi
81ecdfbb
RW
14927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_decl_needed_strstr" >&5
14928$as_echo "$gas_cv_decl_needed_strstr" >&6; }
e8a38df5 14929if test $gas_cv_decl_needed_strstr = yes; then
13b2be9c 14930
81ecdfbb 14931$as_echo "#define NEED_DECLARATION_STRSTR 1" >>confdefs.h
13b2be9c
DJ
14932
14933fi
14934
14935
4b0296ce 14936ac_fn_c_check_decl "$LINENO" "free" "ac_cv_have_decl_free" "$ac_includes_default"
d0ac1c44 14937if test "x$ac_cv_have_decl_free" = xyes; then :
4b0296ce
AM
14938 ac_have_decl=1
14939else
14940 ac_have_decl=0
14941fi
14942
14943cat >>confdefs.h <<_ACEOF
14944#define HAVE_DECL_FREE $ac_have_decl
14945_ACEOF
14946ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
d0ac1c44 14947if test "x$ac_cv_have_decl_getenv" = xyes; then :
4b0296ce
AM
14948 ac_have_decl=1
14949else
14950 ac_have_decl=0
14951fi
14952
14953cat >>confdefs.h <<_ACEOF
14954#define HAVE_DECL_GETENV $ac_have_decl
14955_ACEOF
14956ac_fn_c_check_decl "$LINENO" "malloc" "ac_cv_have_decl_malloc" "$ac_includes_default"
d0ac1c44 14957if test "x$ac_cv_have_decl_malloc" = xyes; then :
4b0296ce
AM
14958 ac_have_decl=1
14959else
14960 ac_have_decl=0
14961fi
14962
14963cat >>confdefs.h <<_ACEOF
14964#define HAVE_DECL_MALLOC $ac_have_decl
14965_ACEOF
0175442d 14966ac_fn_c_check_decl "$LINENO" "mempcpy" "ac_cv_have_decl_mempcpy" "$ac_includes_default"
d0ac1c44 14967if test "x$ac_cv_have_decl_mempcpy" = xyes; then :
0175442d
L
14968 ac_have_decl=1
14969else
14970 ac_have_decl=0
14971fi
14972
14973cat >>confdefs.h <<_ACEOF
14974#define HAVE_DECL_MEMPCPY $ac_have_decl
14975_ACEOF
4b0296ce 14976ac_fn_c_check_decl "$LINENO" "realloc" "ac_cv_have_decl_realloc" "$ac_includes_default"
d0ac1c44 14977if test "x$ac_cv_have_decl_realloc" = xyes; then :
4b0296ce
AM
14978 ac_have_decl=1
14979else
14980 ac_have_decl=0
14981fi
14982
14983cat >>confdefs.h <<_ACEOF
14984#define HAVE_DECL_REALLOC $ac_have_decl
14985_ACEOF
14986ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default"
d0ac1c44 14987if test "x$ac_cv_have_decl_stpcpy" = xyes; then :
4b0296ce
AM
14988 ac_have_decl=1
14989else
14990 ac_have_decl=0
14991fi
14992
14993cat >>confdefs.h <<_ACEOF
14994#define HAVE_DECL_STPCPY $ac_have_decl
14995_ACEOF
14996ac_fn_c_check_decl "$LINENO" "strstr" "ac_cv_have_decl_strstr" "$ac_includes_default"
d0ac1c44 14997if test "x$ac_cv_have_decl_strstr" = xyes; then :
4b0296ce
AM
14998 ac_have_decl=1
14999else
15000 ac_have_decl=0
15001fi
0175442d 15002
4b0296ce
AM
15003cat >>confdefs.h <<_ACEOF
15004#define HAVE_DECL_STRSTR $ac_have_decl
15005_ACEOF
81ecdfbb 15006ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "$ac_includes_default"
d0ac1c44 15007if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
81ecdfbb 15008 ac_have_decl=1
6d74f28b 15009else
81ecdfbb 15010 ac_have_decl=0
6d74f28b 15011fi
6d74f28b
EB
15012
15013cat >>confdefs.h <<_ACEOF
81ecdfbb 15014#define HAVE_DECL_VSNPRINTF $ac_have_decl
6d74f28b 15015_ACEOF
2a7f4fa9 15016ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default"
d0ac1c44 15017if test "x$ac_cv_have_decl_asprintf" = xyes; then :
2a7f4fa9
NC
15018 ac_have_decl=1
15019else
15020 ac_have_decl=0
15021fi
15022
15023cat >>confdefs.h <<_ACEOF
15024#define HAVE_DECL_ASPRINTF $ac_have_decl
15025_ACEOF
6d74f28b
EB
15026
15027
13b2be9c 15028
c973bc5c
NC
15029case "${host}" in
15030*-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*)
15031
81ecdfbb 15032$as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h
c973bc5c
NC
15033 ;;
15034esac
15035
543b7933
L
15036# Link in zlib if we can. This allows us to write compressed debug sections.
15037
15038 # Use the system's zlib library.
39f3de7c
L
15039 zlibdir="-L\$(top_builddir)/../zlib"
15040 zlibinc="-I\$(top_srcdir)/../zlib"
0acf065b 15041
0138187e
L
15042# Check whether --with-system-zlib was given.
15043if test "${with_system_zlib+set}" = set; then :
afa59b79
L
15044 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
15045 zlibdir=
15046 zlibinc=
15047 fi
0acf065b 15048
0acf065b 15049fi
0acf065b 15050
0acf065b
CC
15051
15052
543b7933
L
15053
15054
b11d79f2
TG
15055# Support for VMS timestamps via cross compile
15056
15057if test "$ac_cv_header_time_h" = yes; then
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct tm.tm_gmtoff in time.h" >&5
15059$as_echo_n "checking for struct tm.tm_gmtoff in time.h... " >&6; }
d0ac1c44 15060 if ${gas_cv_have_time_type_member_tm_gmtoff+:} false; then :
b11d79f2
TG
15061 $as_echo_n "(cached) " >&6
15062else
15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064/* end confdefs.h. */
15065
15066#define _BSD_SOURCE 1
15067#include <time.h>
15068int
15069main ()
15070{
15071struct tm avar; void* aref = (void*) &avar.tm_gmtoff
15072 ;
15073 return 0;
15074}
15075_ACEOF
15076if ac_fn_c_try_compile "$LINENO"; then :
15077 gas_cv_have_time_type_member_tm_gmtoff=yes
15078else
15079 gas_cv_have_time_type_member_tm_gmtoff=no
15080
15081fi
15082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15083fi
15084
15085 if test $gas_cv_have_time_type_member_tm_gmtoff = yes; then
15086
15087$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
15088
15089 fi
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_time_type_member_tm_gmtoff" >&5
15091$as_echo "$gas_cv_have_time_type_member_tm_gmtoff" >&6; }
15092
15093fi
15094
15095if test "$ac_cv_header_sys_stat_h" = yes; then
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_sec in sys/stat.h" >&5
15097$as_echo_n "checking for struct stat.st_mtim.tv_sec in sys/stat.h... " >&6; }
d0ac1c44 15098 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_sec+:} false; then :
b11d79f2
TG
15099 $as_echo_n "(cached) " >&6
15100else
15101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15102/* end confdefs.h. */
15103
15104#define _BSD_SOURCE 1
15105#include <sys/stat.h>
15106int
15107main ()
15108{
15109struct stat avar; void* aref = (void*) &avar.st_mtim.tv_sec
15110 ;
15111 return 0;
15112}
15113_ACEOF
15114if ac_fn_c_try_compile "$LINENO"; then :
15115 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=yes
15116else
15117 gas_cv_have_sys_stat_type_member_st_mtim_tv_sec=no
15118
15119fi
15120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15121fi
15122
15123 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec = yes; then
15124
15125$as_echo "#define HAVE_ST_MTIM_TV_SEC 1" >>confdefs.h
15126
15127 fi
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&5
15129$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_sec" >&6; }
15130
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct stat.st_mtim.tv_nsec in sys/stat.h" >&5
15132$as_echo_n "checking for struct stat.st_mtim.tv_nsec in sys/stat.h... " >&6; }
d0ac1c44 15133 if ${gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec+:} false; then :
b11d79f2
TG
15134 $as_echo_n "(cached) " >&6
15135else
15136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15137/* end confdefs.h. */
15138
15139#define _BSD_SOURCE 1
15140#include <sys/stat.h>
15141int
15142main ()
15143{
15144struct stat avar; void* aref = (void*) &avar.st_mtim.tv_nsec
15145 ;
15146 return 0;
15147}
15148_ACEOF
15149if ac_fn_c_try_compile "$LINENO"; then :
15150 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=yes
15151else
15152 gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec=no
15153
15154fi
15155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156fi
15157
15158 if test $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec = yes; then
15159
15160$as_echo "#define HAVE_ST_MTIM_TV_NSEC 1" >>confdefs.h
15161
15162 fi
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&5
15164$as_echo "$gas_cv_have_sys_stat_type_member_st_mtim_tv_nsec" >&6; }
15165
15166fi
15167
15168
c973bc5c 15169
13b2be9c 15170
108a6f8e
CD
15171
15172
15173
15174
31dd3154 15175
81ecdfbb 15176ac_config_files="$ac_config_files Makefile doc/Makefile po/Makefile.in:po/Make-in"
13b2be9c 15177
81ecdfbb 15178ac_config_commands="$ac_config_commands default"
13b2be9c
DJ
15179
15180
15181cat >confcache <<\_ACEOF
15182# This file is a shell script that caches the results of configure
15183# tests run on this system so they can be shared between configure
15184# scripts and configure runs, see configure's option --config-cache.
15185# It is not useful on other systems. If it contains results you don't
15186# want to keep, you may remove or edit it.
15187#
15188# config.status only pays attention to the cache file if you give it
15189# the --recheck option to rerun configure.
15190#
15191# `ac_cv_env_foo' variables (set or unset) will be overridden when
15192# loading this file, other *unset* `ac_cv_foo' will be assigned the
15193# following values.
15194
15195_ACEOF
15196
15197# The following way of writing the cache mishandles newlines in values,
15198# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 15199# So, we kill variables containing newlines.
13b2be9c
DJ
15200# Ultrix sh set writes to stderr and can't be redirected directly,
15201# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
15202(
15203 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15204 eval ac_val=\$$ac_var
15205 case $ac_val in #(
15206 *${as_nl}*)
15207 case $ac_var in #(
15208 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15209$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15210 esac
15211 case $ac_var in #(
15212 _ | IFS | as_nl) ;; #(
15213 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15214 *) { eval $ac_var=; unset $ac_var;} ;;
15215 esac ;;
15216 esac
15217 done
15218
13b2be9c 15219 (set) 2>&1 |
81ecdfbb
RW
15220 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15221 *${as_nl}ac_space=\ *)
15222 # `set' does not quote correctly, so add quotes: double-quote
15223 # substitution turns \\\\ into \\, and sed turns \\ into \.
13b2be9c 15224 sed -n \
ab509236
L
15225 "s/'/'\\\\''/g;
15226 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 15227 ;; #(
13b2be9c
DJ
15228 *)
15229 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 15230 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13b2be9c 15231 ;;
81ecdfbb
RW
15232 esac |
15233 sort
15234) |
13b2be9c 15235 sed '
81ecdfbb 15236 /^ac_cv_env_/b end
13b2be9c 15237 t clear
81ecdfbb 15238 :clear
13b2be9c
DJ
15239 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15240 t end
81ecdfbb
RW
15241 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15242 :end' >>confcache
15243if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15244 if test -w "$cache_file"; then
d0ac1c44 15245 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15247$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
15248 if test ! -f "$cache_file" || test -h "$cache_file"; then
15249 cat confcache >"$cache_file"
15250 else
15251 case $cache_file in #(
15252 */* | ?:*)
15253 mv -f confcache "$cache_file"$$ &&
15254 mv -f "$cache_file"$$ "$cache_file" ;; #(
15255 *)
15256 mv -f confcache "$cache_file" ;;
15257 esac
15258 fi
15259 fi
13b2be9c 15260 else
81ecdfbb
RW
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15262$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13b2be9c
DJ
15263 fi
15264fi
15265rm -f confcache
15266
15267test "x$prefix" = xNONE && prefix=$ac_default_prefix
15268# Let make expand exec_prefix.
15269test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15270
13b2be9c
DJ
15271DEFS=-DHAVE_CONFIG_H
15272
15273ac_libobjs=
15274ac_ltlibobjs=
d0ac1c44 15275U=
13b2be9c
DJ
15276for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15277 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
15278 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15279 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15280 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15281 # will be set to the directory where LIBOBJS objects are built.
15282 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15283 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13b2be9c
DJ
15284done
15285LIBOBJS=$ac_libobjs
15286
15287LTLIBOBJS=$ac_ltlibobjs
15288
15289
d0ac1c44
SM
15290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15291$as_echo_n "checking that generated files are newer than configure... " >&6; }
15292 if test -n "$am_sleep_pid"; then
15293 # Hide warnings about reused PIDs.
15294 wait $am_sleep_pid 2>/dev/null
15295 fi
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15297$as_echo "done" >&6; }
13b2be9c 15298if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
d0ac1c44 15299 as_fn_error $? "conditional \"AMDEP\" was never defined.
81ecdfbb 15300Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c
DJ
15301fi
15302if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
d0ac1c44 15303 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
81ecdfbb
RW
15304Usually this means the macro was only invoked conditionally." "$LINENO" 5
15305fi
15306 if test -n "$EXEEXT"; then
15307 am__EXEEXT_TRUE=
15308 am__EXEEXT_FALSE='#'
15309else
15310 am__EXEEXT_TRUE='#'
15311 am__EXEEXT_FALSE=
13b2be9c 15312fi
81ecdfbb
RW
15313
15314
13b2be9c 15315if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 15316 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
81ecdfbb 15317Usually this means the macro was only invoked conditionally." "$LINENO" 5
13b2be9c 15318fi
d5fbea21 15319if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then
d0ac1c44 15320 as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined.
81ecdfbb 15321Usually this means the macro was only invoked conditionally." "$LINENO" 5
d5fbea21 15322fi
13b2be9c 15323
d0ac1c44 15324: "${CONFIG_STATUS=./config.status}"
81ecdfbb 15325ac_write_fail=0
13b2be9c
DJ
15326ac_clean_files_save=$ac_clean_files
15327ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
15328{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15329$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15330as_write_fail=0
15331cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13b2be9c
DJ
15332#! $SHELL
15333# Generated by $as_me.
15334# Run this file to recreate the current configuration.
15335# Compiler output produced by configure, useful for debugging
15336# configure, is in config.log if it exists.
15337
15338debug=false
15339ac_cs_recheck=false
15340ac_cs_silent=false
13b2be9c 15341
81ecdfbb
RW
15342SHELL=\${CONFIG_SHELL-$SHELL}
15343export SHELL
15344_ASEOF
15345cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15346## -------------------- ##
15347## M4sh Initialization. ##
15348## -------------------- ##
13b2be9c 15349
81ecdfbb
RW
15350# Be more Bourne compatible
15351DUALCASE=1; export DUALCASE # for MKS sh
15352if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13b2be9c
DJ
15353 emulate sh
15354 NULLCMD=:
81ecdfbb 15355 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13b2be9c
DJ
15356 # is contrary to our usage. Disable this feature.
15357 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
15358 setopt NO_GLOB_SUBST
15359else
15360 case `(set -o) 2>/dev/null` in #(
15361 *posix*) :
15362 set -o posix ;; #(
15363 *) :
15364 ;;
15365esac
13b2be9c
DJ
15366fi
15367
81ecdfbb
RW
15368
15369as_nl='
15370'
15371export as_nl
15372# Printing a long string crashes Solaris 7 /usr/bin/printf.
15373as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15374as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15375as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15376# Prefer a ksh shell builtin over an external printf program on Solaris,
15377# but without wasting forks for bash or zsh.
15378if test -z "$BASH_VERSION$ZSH_VERSION" \
15379 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15380 as_echo='print -r --'
15381 as_echo_n='print -rn --'
15382elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15383 as_echo='printf %s\n'
15384 as_echo_n='printf %s'
15385else
15386 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15387 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15388 as_echo_n='/usr/ucb/echo -n'
15389 else
15390 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15391 as_echo_n_body='eval
15392 arg=$1;
15393 case $arg in #(
15394 *"$as_nl"*)
15395 expr "X$arg" : "X\\(.*\\)$as_nl";
15396 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15397 esac;
15398 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15399 '
15400 export as_echo_n_body
15401 as_echo_n='sh -c $as_echo_n_body as_echo'
15402 fi
15403 export as_echo_body
15404 as_echo='sh -c $as_echo_body as_echo'
13b2be9c
DJ
15405fi
15406
81ecdfbb
RW
15407# The user is always right.
15408if test "${PATH_SEPARATOR+set}" != set; then
15409 PATH_SEPARATOR=:
15410 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15411 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15412 PATH_SEPARATOR=';'
15413 }
15414fi
15415
15416
15417# IFS
15418# We need space, tab and new line, in precisely that order. Quoting is
15419# there to prevent editors from complaining about space-tab.
15420# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15421# splitting by setting IFS to empty value.)
15422IFS=" "" $as_nl"
15423
15424# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 15425as_myself=
81ecdfbb
RW
15426case $0 in #((
15427 *[\\/]* ) as_myself=$0 ;;
15428 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15429for as_dir in $PATH
15430do
15431 IFS=$as_save_IFS
15432 test -z "$as_dir" && as_dir=.
15433 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15434 done
15435IFS=$as_save_IFS
15436
15437 ;;
15438esac
15439# We did not find ourselves, most probably we were run as `sh COMMAND'
15440# in which case we are not to be found in the path.
15441if test "x$as_myself" = x; then
15442 as_myself=$0
15443fi
15444if test ! -f "$as_myself"; then
15445 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15446 exit 1
15447fi
13b2be9c 15448
81ecdfbb
RW
15449# Unset variables that we do not need and which cause bugs (e.g. in
15450# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15451# suppresses any "Segmentation fault" message there. '((' could
15452# trigger a bug in pdksh 5.2.14.
15453for as_var in BASH_ENV ENV MAIL MAILPATH
15454do eval test x\${$as_var+set} = xset \
15455 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15456done
13b2be9c
DJ
15457PS1='$ '
15458PS2='> '
15459PS4='+ '
15460
15461# NLS nuisances.
81ecdfbb
RW
15462LC_ALL=C
15463export LC_ALL
15464LANGUAGE=C
15465export LANGUAGE
15466
15467# CDPATH.
15468(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15469
15470
d0ac1c44
SM
15471# as_fn_error STATUS ERROR [LINENO LOG_FD]
15472# ----------------------------------------
81ecdfbb
RW
15473# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15474# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 15475# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
15476as_fn_error ()
15477{
d0ac1c44
SM
15478 as_status=$1; test $as_status -eq 0 && as_status=1
15479 if test "$4"; then
15480 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15481 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13b2be9c 15482 fi
d0ac1c44 15483 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
15484 as_fn_exit $as_status
15485} # as_fn_error
15486
15487
15488# as_fn_set_status STATUS
15489# -----------------------
15490# Set $? to STATUS, without forking.
15491as_fn_set_status ()
15492{
15493 return $1
15494} # as_fn_set_status
15495
15496# as_fn_exit STATUS
15497# -----------------
15498# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15499as_fn_exit ()
15500{
15501 set +e
15502 as_fn_set_status $1
15503 exit $1
15504} # as_fn_exit
15505
15506# as_fn_unset VAR
15507# ---------------
15508# Portably unset VAR.
15509as_fn_unset ()
15510{
15511 { eval $1=; unset $1;}
15512}
15513as_unset=as_fn_unset
15514# as_fn_append VAR VALUE
15515# ----------------------
15516# Append the text in VALUE to the end of the definition contained in VAR. Take
15517# advantage of any shell optimizations that allow amortized linear growth over
15518# repeated appends, instead of the typical quadratic growth present in naive
15519# implementations.
15520if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15521 eval 'as_fn_append ()
15522 {
15523 eval $1+=\$2
15524 }'
15525else
15526 as_fn_append ()
15527 {
15528 eval $1=\$$1\$2
15529 }
15530fi # as_fn_append
15531
15532# as_fn_arith ARG...
15533# ------------------
15534# Perform arithmetic evaluation on the ARGs, and store the result in the
15535# global $as_val. Take advantage of shells that can avoid forks. The arguments
15536# must be portable across $(()) and expr.
15537if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15538 eval 'as_fn_arith ()
15539 {
15540 as_val=$(( $* ))
15541 }'
15542else
15543 as_fn_arith ()
15544 {
15545 as_val=`expr "$@" || test $? -eq 1`
15546 }
15547fi # as_fn_arith
15548
13b2be9c 15549
81ecdfbb
RW
15550if expr a : '\(a\)' >/dev/null 2>&1 &&
15551 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13b2be9c
DJ
15552 as_expr=expr
15553else
15554 as_expr=false
15555fi
15556
81ecdfbb 15557if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13b2be9c
DJ
15558 as_basename=basename
15559else
15560 as_basename=false
15561fi
15562
81ecdfbb
RW
15563if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15564 as_dirname=dirname
15565else
15566 as_dirname=false
15567fi
13b2be9c 15568
81ecdfbb 15569as_me=`$as_basename -- "$0" ||
13b2be9c
DJ
15570$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15571 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
15572 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15573$as_echo X/"$0" |
15574 sed '/^.*\/\([^/][^/]*\)\/*$/{
15575 s//\1/
15576 q
15577 }
15578 /^X\/\(\/\/\)$/{
15579 s//\1/
15580 q
15581 }
15582 /^X\/\(\/\).*/{
15583 s//\1/
15584 q
15585 }
15586 s/.*/./; q'`
13b2be9c 15587
13b2be9c
DJ
15588# Avoid depending upon Character Ranges.
15589as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15590as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15591as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15592as_cr_digits='0123456789'
15593as_cr_alnum=$as_cr_Letters$as_cr_digits
15594
81ecdfbb
RW
15595ECHO_C= ECHO_N= ECHO_T=
15596case `echo -n x` in #(((((
15597-n*)
15598 case `echo 'xy\c'` in
15599 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15600 xy) ECHO_C='\c';;
15601 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15602 ECHO_T=' ';;
15603 esac;;
15604*)
15605 ECHO_N='-n';;
13b2be9c 15606esac
252b5132 15607
81ecdfbb
RW
15608rm -f conf$$ conf$$.exe conf$$.file
15609if test -d conf$$.dir; then
15610 rm -f conf$$.dir/conf$$.file
252b5132 15611else
81ecdfbb
RW
15612 rm -f conf$$.dir
15613 mkdir conf$$.dir 2>/dev/null
252b5132 15614fi
81ecdfbb
RW
15615if (echo >conf$$.file) 2>/dev/null; then
15616 if ln -s conf$$.file conf$$ 2>/dev/null; then
13b2be9c 15617 as_ln_s='ln -s'
81ecdfbb
RW
15618 # ... but there are two gotchas:
15619 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15620 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 15621 # In both cases, we have to default to `cp -pR'.
81ecdfbb 15622 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 15623 as_ln_s='cp -pR'
81ecdfbb
RW
15624 elif ln conf$$.file conf$$ 2>/dev/null; then
15625 as_ln_s=ln
15626 else
d0ac1c44 15627 as_ln_s='cp -pR'
13b2be9c 15628 fi
13b2be9c 15629else
d0ac1c44 15630 as_ln_s='cp -pR'
252b5132 15631fi
81ecdfbb
RW
15632rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15633rmdir conf$$.dir 2>/dev/null
252b5132 15634
81ecdfbb
RW
15635
15636# as_fn_mkdir_p
15637# -------------
15638# Create "$as_dir" as a directory, including parents if necessary.
15639as_fn_mkdir_p ()
15640{
15641
15642 case $as_dir in #(
15643 -*) as_dir=./$as_dir;;
15644 esac
15645 test -d "$as_dir" || eval $as_mkdir_p || {
15646 as_dirs=
15647 while :; do
15648 case $as_dir in #(
15649 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15650 *) as_qdir=$as_dir;;
15651 esac
15652 as_dirs="'$as_qdir' $as_dirs"
15653 as_dir=`$as_dirname -- "$as_dir" ||
15654$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15655 X"$as_dir" : 'X\(//\)[^/]' \| \
15656 X"$as_dir" : 'X\(//\)$' \| \
15657 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15658$as_echo X"$as_dir" |
15659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15660 s//\1/
15661 q
15662 }
15663 /^X\(\/\/\)[^/].*/{
15664 s//\1/
15665 q
15666 }
15667 /^X\(\/\/\)$/{
15668 s//\1/
15669 q
15670 }
15671 /^X\(\/\).*/{
15672 s//\1/
15673 q
15674 }
15675 s/.*/./; q'`
15676 test -d "$as_dir" && break
15677 done
15678 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 15679 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb
RW
15680
15681
15682} # as_fn_mkdir_p
13b2be9c 15683if mkdir -p . 2>/dev/null; then
81ecdfbb 15684 as_mkdir_p='mkdir -p "$as_dir"'
252b5132 15685else
ab509236 15686 test -d ./-p && rmdir ./-p
13b2be9c
DJ
15687 as_mkdir_p=false
15688fi
81ecdfbb 15689
d0ac1c44
SM
15690
15691# as_fn_executable_p FILE
15692# -----------------------
15693# Test if FILE is an executable regular file.
15694as_fn_executable_p ()
15695{
15696 test -f "$1" && test -x "$1"
15697} # as_fn_executable_p
15698as_test_x='test -x'
15699as_executable_p=as_fn_executable_p
252b5132 15700
13b2be9c 15701# Sed expression to map a string onto a valid CPP name.
ab509236 15702as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15703
13b2be9c 15704# Sed expression to map a string onto a valid variable name.
ab509236 15705as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
252b5132 15706
d6d788bd 15707
13b2be9c 15708exec 6>&1
81ecdfbb
RW
15709## ----------------------------------- ##
15710## Main body of $CONFIG_STATUS script. ##
15711## ----------------------------------- ##
15712_ASEOF
15713test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
252b5132 15714
81ecdfbb
RW
15715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15716# Save the log message, to keep $0 and so on meaningful, and to
13b2be9c 15717# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
15718# values after options handling.
15719ac_log="
f48dfe41 15720This file was extended by gas $as_me 2.32.51, which was
d0ac1c44 15721generated by GNU Autoconf 2.69. Invocation command line was
d6d788bd 15722
13b2be9c
DJ
15723 CONFIG_FILES = $CONFIG_FILES
15724 CONFIG_HEADERS = $CONFIG_HEADERS
15725 CONFIG_LINKS = $CONFIG_LINKS
15726 CONFIG_COMMANDS = $CONFIG_COMMANDS
15727 $ $0 $@
252b5132 15728
81ecdfbb
RW
15729on `(hostname || uname -n) 2>/dev/null | sed 1q`
15730"
15731
13b2be9c 15732_ACEOF
252b5132 15733
81ecdfbb
RW
15734case $ac_config_files in *"
15735"*) set x $ac_config_files; shift; ac_config_files=$*;;
15736esac
13b2be9c 15737
81ecdfbb
RW
15738case $ac_config_headers in *"
15739"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15740esac
252b5132 15741
252b5132 15742
81ecdfbb
RW
15743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15744# Files that config.status was made for.
15745config_files="$ac_config_files"
15746config_headers="$ac_config_headers"
15747config_commands="$ac_config_commands"
d6d788bd 15748
81ecdfbb 15749_ACEOF
252b5132 15750
81ecdfbb 15751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 15752ac_cs_usage="\
81ecdfbb
RW
15753\`$as_me' instantiates files and other configuration actions
15754from templates according to the current configuration. Unless the files
15755and actions are specified as TAGs, all are instantiated by default.
252b5132 15756
81ecdfbb 15757Usage: $0 [OPTION]... [TAG]...
252b5132 15758
13b2be9c 15759 -h, --help print this help, then exit
81ecdfbb 15760 -V, --version print version number and configuration settings, then exit
d0ac1c44 15761 --config print configuration, then exit
81ecdfbb
RW
15762 -q, --quiet, --silent
15763 do not print progress messages
13b2be9c
DJ
15764 -d, --debug don't remove temporary files
15765 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
15766 --file=FILE[:TEMPLATE]
15767 instantiate the configuration file FILE
15768 --header=FILE[:TEMPLATE]
15769 instantiate the configuration header FILE
252b5132 15770
13b2be9c
DJ
15771Configuration files:
15772$config_files
252b5132 15773
13b2be9c
DJ
15774Configuration headers:
15775$config_headers
252b5132 15776
13b2be9c
DJ
15777Configuration commands:
15778$config_commands
252b5132 15779
81ecdfbb 15780Report bugs to the package provider."
d6d788bd 15781
81ecdfbb
RW
15782_ACEOF
15783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 15784ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13b2be9c 15785ac_cs_version="\\
f48dfe41 15786gas config.status 2.32.51
d0ac1c44
SM
15787configured by $0, generated by GNU Autoconf 2.69,
15788 with options \\"\$ac_cs_config\\"
d6d788bd 15789
d0ac1c44 15790Copyright (C) 2012 Free Software Foundation, Inc.
13b2be9c
DJ
15791This config.status script is free software; the Free Software Foundation
15792gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
15793
15794ac_pwd='$ac_pwd'
15795srcdir='$srcdir'
15796INSTALL='$INSTALL'
15797MKDIR_P='$MKDIR_P'
15798AWK='$AWK'
15799test -n "\$AWK" || AWK=awk
13b2be9c 15800_ACEOF
d6d788bd 15801
81ecdfbb
RW
15802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15803# The default lists apply if the user does not specify any file.
13b2be9c
DJ
15804ac_need_defaults=:
15805while test $# != 0
15806do
15807 case $1 in
d0ac1c44 15808 --*=?*)
81ecdfbb
RW
15809 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15810 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13b2be9c 15811 ac_shift=:
c8615825 15812 ;;
d0ac1c44
SM
15813 --*=)
15814 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15815 ac_optarg=
15816 ac_shift=:
15817 ;;
81ecdfbb 15818 *)
13b2be9c
DJ
15819 ac_option=$1
15820 ac_optarg=$2
15821 ac_shift=shift
c8615825 15822 ;;
13b2be9c 15823 esac
252b5132 15824
13b2be9c
DJ
15825 case $ac_option in
15826 # Handling of the options.
13b2be9c
DJ
15827 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15828 ac_cs_recheck=: ;;
81ecdfbb
RW
15829 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15830 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
15831 --config | --confi | --conf | --con | --co | --c )
15832 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 15833 --debug | --debu | --deb | --de | --d | -d )
13b2be9c
DJ
15834 debug=: ;;
15835 --file | --fil | --fi | --f )
15836 $ac_shift
81ecdfbb
RW
15837 case $ac_optarg in
15838 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 15839 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
15840 esac
15841 as_fn_append CONFIG_FILES " '$ac_optarg'"
13b2be9c
DJ
15842 ac_need_defaults=false;;
15843 --header | --heade | --head | --hea )
15844 $ac_shift
81ecdfbb
RW
15845 case $ac_optarg in
15846 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15847 esac
15848 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13b2be9c 15849 ac_need_defaults=false;;
81ecdfbb
RW
15850 --he | --h)
15851 # Conflict between --help and --header
d0ac1c44 15852 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
15853Try \`$0 --help' for more information.";;
15854 --help | --hel | -h )
15855 $as_echo "$ac_cs_usage"; exit ;;
13b2be9c
DJ
15856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15857 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15858 ac_cs_silent=: ;;
c8615825 15859
13b2be9c 15860 # This is an error.
d0ac1c44 15861 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 15862Try \`$0 --help' for more information." ;;
252b5132 15863
81ecdfbb
RW
15864 *) as_fn_append ac_config_targets " $1"
15865 ac_need_defaults=false ;;
252b5132 15866
13b2be9c
DJ
15867 esac
15868 shift
15869done
252b5132 15870
13b2be9c 15871ac_configure_extra_args=
d6d788bd 15872
13b2be9c
DJ
15873if $ac_cs_silent; then
15874 exec 6>/dev/null
15875 ac_configure_extra_args="$ac_configure_extra_args --silent"
15876fi
9b2b7d69 15877
13b2be9c 15878_ACEOF
81ecdfbb 15879cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13b2be9c 15880if \$ac_cs_recheck; then
d0ac1c44 15881 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
15882 shift
15883 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15884 CONFIG_SHELL='$SHELL'
15885 export CONFIG_SHELL
15886 exec "\$@"
13b2be9c
DJ
15887fi
15888
15889_ACEOF
81ecdfbb
RW
15890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15891exec 5>>config.log
15892{
15893 echo
15894 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15895## Running $as_me. ##
15896_ASBOX
15897 $as_echo "$ac_log"
15898} >&5
13b2be9c 15899
81ecdfbb
RW
15900_ACEOF
15901cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9b2b7d69 15902#
81ecdfbb 15903# INIT-COMMANDS
9b2b7d69 15904#
13b2be9c 15905AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
d7040cdb
SE
15906
15907
15908# The HP-UX ksh and POSIX shell print the target directory to stdout
15909# if CDPATH is set.
15910(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15911
15912sed_quote_subst='$sed_quote_subst'
15913double_quote_subst='$double_quote_subst'
15914delay_variable_subst='$delay_variable_subst'
3725885a
RW
15915macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15916macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15917enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15918enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15919pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15920enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15921SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15922ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15923host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15924host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15925host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15926build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15927build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15928build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15929SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15930Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15931GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15932EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15933FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15934LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15935NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15936LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15937max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15938ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15939exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15940lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15941lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15942lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15943reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15944reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15945OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15946deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15947file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15948AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15949AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15950STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15951RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15952old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15953old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15954old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15955lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15956CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15957CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15958compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15959GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15960lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15961lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15962lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15963lt_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"`'
15964objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15965MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15966lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
df7b86aa 15967lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
f2c621e4 15968lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
3725885a
RW
15969lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15970lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15971need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15972DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15973NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15974LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15975OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15976OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15977libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15978shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15979extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15980archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15981enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15982export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15983whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15984compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15985old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15986old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15987archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15988archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15989module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15990module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15991with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15992allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15993no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15994hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15995hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15996hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15997hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15998hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15999hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16000hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16001hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16002inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16003link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
f2c621e4 16004fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
3725885a
RW
16005always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16006export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16007exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16008include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16009prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16010file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16011variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16012need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16013need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16014version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16015runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16016shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16017shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16018libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16019library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16020soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16021install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16022postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16023postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16024finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16025finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16026hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16027sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16028sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16029hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16030enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16031enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16032enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16033old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16034striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
d7040cdb
SE
16035
16036LTCC='$LTCC'
16037LTCFLAGS='$LTCFLAGS'
16038compiler='$compiler_DEFAULT'
16039
3725885a
RW
16040# A function that is used when there is no print builtin or printf.
16041func_fallback_echo ()
16042{
16043 eval 'cat <<_LTECHO_EOF
16044\$1
16045_LTECHO_EOF'
16046}
16047
d7040cdb 16048# Quote evaled strings.
3725885a
RW
16049for var in SHELL \
16050ECHO \
16051SED \
d7040cdb
SE
16052GREP \
16053EGREP \
16054FGREP \
16055LD \
16056NM \
16057LN_S \
16058lt_SP2NL \
16059lt_NL2SP \
16060reload_flag \
718a6fd8 16061OBJDUMP \
d7040cdb
SE
16062deplibs_check_method \
16063file_magic_cmd \
16064AR \
16065AR_FLAGS \
16066STRIP \
16067RANLIB \
16068CC \
16069CFLAGS \
16070compiler \
16071lt_cv_sys_global_symbol_pipe \
16072lt_cv_sys_global_symbol_to_cdecl \
16073lt_cv_sys_global_symbol_to_c_name_address \
718a6fd8 16074lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
d7040cdb 16075lt_prog_compiler_no_builtin_flag \
df7b86aa 16076lt_prog_compiler_wl \
f2c621e4 16077lt_prog_compiler_pic \
d7040cdb
SE
16078lt_prog_compiler_static \
16079lt_cv_prog_compiler_c_o \
16080need_locks \
718a6fd8
SE
16081DSYMUTIL \
16082NMEDIT \
16083LIPO \
16084OTOOL \
16085OTOOL64 \
d7040cdb
SE
16086shrext_cmds \
16087export_dynamic_flag_spec \
16088whole_archive_flag_spec \
16089compiler_needs_object \
16090with_gnu_ld \
16091allow_undefined_flag \
16092no_undefined_flag \
16093hardcode_libdir_flag_spec \
16094hardcode_libdir_flag_spec_ld \
16095hardcode_libdir_separator \
f2c621e4 16096fix_srcfile_path \
d7040cdb
SE
16097exclude_expsyms \
16098include_expsyms \
16099file_list_spec \
16100variables_saved_for_relink \
16101libname_spec \
16102library_names_spec \
16103soname_spec \
3725885a 16104install_override_mode \
d7040cdb
SE
16105finish_eval \
16106old_striplib \
16107striplib; do
3725885a 16108 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 16109 *[\\\\\\\`\\"\\\$]*)
3725885a 16110 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
d7040cdb
SE
16111 ;;
16112 *)
16113 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16114 ;;
16115 esac
16116done
16117
16118# Double-quote double-evaled strings.
16119for var in reload_cmds \
16120old_postinstall_cmds \
16121old_postuninstall_cmds \
16122old_archive_cmds \
16123extract_expsyms_cmds \
16124old_archive_from_new_cmds \
16125old_archive_from_expsyms_cmds \
16126archive_cmds \
16127archive_expsym_cmds \
16128module_cmds \
16129module_expsym_cmds \
16130export_symbols_cmds \
16131prelink_cmds \
16132postinstall_cmds \
16133postuninstall_cmds \
16134finish_cmds \
16135sys_lib_search_path_spec \
16136sys_lib_dlsearch_path_spec; do
3725885a 16137 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
d7040cdb 16138 *[\\\\\\\`\\"\\\$]*)
3725885a 16139 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
d7040cdb
SE
16140 ;;
16141 *)
16142 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16143 ;;
16144 esac
16145done
16146
d7040cdb
SE
16147ac_aux_dir='$ac_aux_dir'
16148xsi_shell='$xsi_shell'
16149lt_shell_append='$lt_shell_append'
16150
16151# See if we are running on zsh, and set the options which allow our
16152# commands through without removal of \ escapes INIT.
16153if test -n "\${ZSH_VERSION+set}" ; then
16154 setopt NO_GLOB_SUBST
16155fi
16156
16157
16158 PACKAGE='$PACKAGE'
16159 VERSION='$VERSION'
16160 TIMESTAMP='$TIMESTAMP'
16161 RM='$RM'
16162 ofile='$ofile'
16163
16164
16165
20e95c23
DJ
16166# Capture the value of obsolete ALL_LINGUAS because we need it to compute
16167 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
16168 # from automake.
16169 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
16170 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16171 LINGUAS="${LINGUAS-%UNSET%}"
16172
13b2be9c
DJ
16173target_cpu_type=${target_cpu_type}
16174 cgen_cpu_prefix=${cgen_cpu_prefix}
16175 obj_format=${obj_format}
16176 te_file=${te_file}
16177
16178_ACEOF
16179
81ecdfbb 16180cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c 16181
81ecdfbb 16182# Handling of arguments.
13b2be9c 16183for ac_config_target in $ac_config_targets
9b2b7d69 16184do
81ecdfbb
RW
16185 case $ac_config_target in
16186 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16187 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16188 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
16189 "gdb.ini") CONFIG_FILES="$CONFIG_FILES gdb.ini:gdbinit.in" ;;
16190 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
16191 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16192 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16193 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16194 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;;
16195 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
16196
d0ac1c44 16197 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9b2b7d69
MM
16198 esac
16199done
16200
81ecdfbb 16201
13b2be9c
DJ
16202# If the user did not use the arguments to specify the items to instantiate,
16203# then the envvar interface is used. Set only those that are not.
16204# We use the long form for the default assignment because of an extremely
16205# bizarre bug on SunOS 4.1.3.
16206if $ac_need_defaults; then
16207 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16208 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16209 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16210fi
16211
16212# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 16213# simply because there is no reason against having it here, and in addition,
13b2be9c 16214# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
16215# Hook for its removal unless debugging.
16216# Note that there is a small window in which the directory will not be cleaned:
16217# after its creation but before its name has been assigned to `$tmp'.
13b2be9c
DJ
16218$debug ||
16219{
d0ac1c44 16220 tmp= ac_tmp=
81ecdfbb 16221 trap 'exit_status=$?
d0ac1c44
SM
16222 : "${ac_tmp:=$tmp}"
16223 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
16224' 0
16225 trap 'as_fn_exit 1' 1 2 13 15
13b2be9c 16226}
13b2be9c 16227# Create a (secure) tmp directory for tmp files.
9b2b7d69 16228
13b2be9c 16229{
81ecdfbb 16230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 16231 test -d "$tmp"
13b2be9c
DJ
16232} ||
16233{
81ecdfbb
RW
16234 tmp=./conf$$-$RANDOM
16235 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
16236} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16237ac_tmp=$tmp
81ecdfbb
RW
16238
16239# Set up the scripts for CONFIG_FILES section.
16240# No need to generate them if there are no CONFIG_FILES.
16241# This happens for instance with `./config.status config.h'.
16242if test -n "$CONFIG_FILES"; then
16243
16244
16245ac_cr=`echo X | tr X '\015'`
16246# On cygwin, bash can eat \r inside `` if the user requested igncr.
16247# But we know of no other shell where ac_cr would be empty at this
16248# point, so we can use a bashism as a fallback.
16249if test "x$ac_cr" = x; then
16250 eval ac_cr=\$\'\\r\'
16251fi
16252ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16253if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 16254 ac_cs_awk_cr='\\r'
81ecdfbb
RW
16255else
16256 ac_cs_awk_cr=$ac_cr
16257fi
16258
d0ac1c44 16259echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
81ecdfbb
RW
16260_ACEOF
16261
16262
16263{
16264 echo "cat >conf$$subs.awk <<_ACEOF" &&
16265 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16266 echo "_ACEOF"
16267} >conf$$subs.sh ||
d0ac1c44
SM
16268 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16269ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
16270ac_delim='%!_!# '
16271for ac_last_try in false false false false false :; do
16272 . ./conf$$subs.sh ||
d0ac1c44 16273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
16274
16275 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16276 if test $ac_delim_n = $ac_delim_num; then
16277 break
16278 elif $ac_last_try; then
d0ac1c44 16279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
16280 else
16281 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16282 fi
16283done
16284rm -f conf$$subs.sh
16285
16286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 16287cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
16288_ACEOF
16289sed -n '
16290h
16291s/^/S["/; s/!.*/"]=/
16292p
16293g
16294s/^[^!]*!//
16295:repl
16296t repl
16297s/'"$ac_delim"'$//
16298t delim
16299:nl
16300h
d0ac1c44 16301s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16302t more1
16303s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16304p
16305n
16306b repl
16307:more1
16308s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16309p
16310g
16311s/.\{148\}//
16312t nl
16313:delim
16314h
d0ac1c44 16315s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
16316t more2
16317s/["\\]/\\&/g; s/^/"/; s/$/"/
16318p
16319b
16320:more2
16321s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16322p
16323g
16324s/.\{148\}//
16325t delim
16326' <conf$$subs.awk | sed '
16327/^[^""]/{
16328 N
16329 s/\n//
16330}
16331' >>$CONFIG_STATUS || ac_write_fail=1
16332rm -f conf$$subs.awk
16333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16334_ACAWK
d0ac1c44 16335cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
16336 for (key in S) S_is_set[key] = 1
16337 FS = "\a"
16338
16339}
13b2be9c 16340{
81ecdfbb
RW
16341 line = $ 0
16342 nfields = split(line, field, "@")
16343 substed = 0
16344 len = length(field[1])
16345 for (i = 2; i < nfields; i++) {
16346 key = field[i]
16347 keylen = length(key)
16348 if (S_is_set[key]) {
16349 value = S[key]
16350 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16351 len += length(value) + length(field[++i])
16352 substed = 1
16353 } else
16354 len += 1 + keylen
16355 }
16356
16357 print line
13b2be9c 16358}
9b2b7d69 16359
81ecdfbb
RW
16360_ACAWK
16361_ACEOF
16362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16363if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16364 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16365else
16366 cat
d0ac1c44
SM
16367fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16368 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13b2be9c
DJ
16369_ACEOF
16370
d0ac1c44
SM
16371# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16372# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
16373# trailing colons and then remove the whole line if VPATH becomes empty
16374# (actually we leave an empty line to preserve line numbers).
16375if test "x$srcdir" = x.; then
d0ac1c44
SM
16376 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16377h
16378s///
16379s/^/:/
16380s/[ ]*$/:/
16381s/:\$(srcdir):/:/g
16382s/:\${srcdir}:/:/g
16383s/:@srcdir@:/:/g
16384s/^:*//
81ecdfbb 16385s/:*$//
d0ac1c44
SM
16386x
16387s/\(=[ ]*\).*/\1/
16388G
16389s/\n//
81ecdfbb
RW
16390s/^[^=]*=[ ]*$//
16391}'
16392fi
16393
16394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16395fi # test -n "$CONFIG_FILES"
13b2be9c 16396
81ecdfbb
RW
16397# Set up the scripts for CONFIG_HEADERS section.
16398# No need to generate them if there are no CONFIG_HEADERS.
16399# This happens for instance with `./config.status Makefile'.
16400if test -n "$CONFIG_HEADERS"; then
d0ac1c44 16401cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
16402BEGIN {
16403_ACEOF
13b2be9c 16404
81ecdfbb
RW
16405# Transform confdefs.h into an awk script `defines.awk', embedded as
16406# here-document in config.status, that substitutes the proper values into
16407# config.h.in to produce config.h.
9b2b7d69 16408
81ecdfbb
RW
16409# Create a delimiter string that does not exist in confdefs.h, to ease
16410# handling of long lines.
16411ac_delim='%!_!# '
16412for ac_last_try in false false :; do
d0ac1c44
SM
16413 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16414 if test -z "$ac_tt"; then
81ecdfbb
RW
16415 break
16416 elif $ac_last_try; then
d0ac1c44 16417 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
81ecdfbb
RW
16418 else
16419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16420 fi
16421done
16422
16423# For the awk script, D is an array of macro values keyed by name,
16424# likewise P contains macro parameters if any. Preserve backslash
16425# newline sequences.
16426
16427ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16428sed -n '
16429s/.\{148\}/&'"$ac_delim"'/g
16430t rset
16431:rset
16432s/^[ ]*#[ ]*define[ ][ ]*/ /
16433t def
16434d
16435:def
16436s/\\$//
16437t bsnl
16438s/["\\]/\\&/g
16439s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16440D["\1"]=" \3"/p
16441s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16442d
16443:bsnl
16444s/["\\]/\\&/g
16445s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16446D["\1"]=" \3\\\\\\n"\\/p
16447t cont
16448s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16449t cont
16450d
16451:cont
16452n
16453s/.\{148\}/&'"$ac_delim"'/g
16454t clear
16455:clear
16456s/\\$//
16457t bsnlc
16458s/["\\]/\\&/g; s/^/"/; s/$/"/p
16459d
16460:bsnlc
16461s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16462b cont
16463' <confdefs.h | sed '
16464s/'"$ac_delim"'/"\\\
16465"/g' >>$CONFIG_STATUS || ac_write_fail=1
16466
16467cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16468 for (key in D) D_is_set[key] = 1
16469 FS = "\a"
16470}
16471/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16472 line = \$ 0
16473 split(line, arg, " ")
16474 if (arg[1] == "#") {
16475 defundef = arg[2]
16476 mac1 = arg[3]
16477 } else {
16478 defundef = substr(arg[1], 2)
16479 mac1 = arg[2]
16480 }
16481 split(mac1, mac2, "(") #)
16482 macro = mac2[1]
16483 prefix = substr(line, 1, index(line, defundef) - 1)
16484 if (D_is_set[macro]) {
16485 # Preserve the white space surrounding the "#".
16486 print prefix "define", macro P[macro] D[macro]
16487 next
16488 } else {
16489 # Replace #undef with comments. This is necessary, for example,
16490 # in the case of _POSIX_SOURCE, which is predefined and required
16491 # on some systems where configure will not decide to define it.
16492 if (defundef == "undef") {
16493 print "/*", prefix defundef, macro, "*/"
16494 next
16495 }
16496 }
16497}
16498{ print }
16499_ACAWK
13b2be9c 16500_ACEOF
81ecdfbb 16501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 16502 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 16503fi # test -n "$CONFIG_HEADERS"
13b2be9c 16504
81ecdfbb
RW
16505
16506eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16507shift
16508for ac_tag
16509do
16510 case $ac_tag in
16511 :[FHLC]) ac_mode=$ac_tag; continue;;
16512 esac
16513 case $ac_mode$ac_tag in
16514 :[FHL]*:*);;
d0ac1c44 16515 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
16516 :[FH]-) ac_tag=-:-;;
16517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16518 esac
16519 ac_save_IFS=$IFS
16520 IFS=:
16521 set x $ac_tag
16522 IFS=$ac_save_IFS
16523 shift
16524 ac_file=$1
16525 shift
16526
16527 case $ac_mode in
16528 :L) ac_source=$1;;
16529 :[FH])
16530 ac_file_inputs=
16531 for ac_f
16532 do
16533 case $ac_f in
d0ac1c44 16534 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
16535 *) # Look for the file first in the build tree, then in the source tree
16536 # (if the path is not absolute). The absolute path cannot be DOS-style,
16537 # because $ac_f cannot contain `:'.
16538 test -f "$ac_f" ||
16539 case $ac_f in
16540 [\\/$]*) false;;
16541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16542 esac ||
d0ac1c44 16543 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
81ecdfbb
RW
16544 esac
16545 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16546 as_fn_append ac_file_inputs " '$ac_f'"
16547 done
16548
16549 # Let's still pretend it is `configure' which instantiates (i.e., don't
16550 # use $as_me), people would be surprised to read:
16551 # /* config.h. Generated by config.status. */
16552 configure_input='Generated from '`
16553 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16554 `' by configure.'
16555 if test x"$ac_file" != x-; then
16556 configure_input="$ac_file. $configure_input"
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16558$as_echo "$as_me: creating $ac_file" >&6;}
9b2b7d69 16559 fi
81ecdfbb
RW
16560 # Neutralize special characters interpreted by sed in replacement strings.
16561 case $configure_input in #(
16562 *\&* | *\|* | *\\* )
16563 ac_sed_conf_input=`$as_echo "$configure_input" |
16564 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16565 *) ac_sed_conf_input=$configure_input;;
16566 esac
252b5132 16567
81ecdfbb 16568 case $ac_tag in
d0ac1c44
SM
16569 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
16571 esac
16572 ;;
252b5132 16573 esac
9b2b7d69 16574
81ecdfbb 16575 ac_dir=`$as_dirname -- "$ac_file" ||
13b2be9c 16576$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16577 X"$ac_file" : 'X\(//\)[^/]' \| \
16578 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
16579 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16580$as_echo X"$ac_file" |
16581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16582 s//\1/
16583 q
16584 }
16585 /^X\(\/\/\)[^/].*/{
16586 s//\1/
16587 q
16588 }
16589 /^X\(\/\/\)$/{
16590 s//\1/
16591 q
16592 }
16593 /^X\(\/\).*/{
16594 s//\1/
16595 q
16596 }
16597 s/.*/./; q'`
16598 as_dir="$ac_dir"; as_fn_mkdir_p
13b2be9c
DJ
16599 ac_builddir=.
16600
81ecdfbb
RW
16601case "$ac_dir" in
16602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16603*)
16604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16605 # A ".." for each directory in $ac_dir_suffix.
16606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16607 case $ac_top_builddir_sub in
16608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16610 esac ;;
16611esac
16612ac_abs_top_builddir=$ac_pwd
16613ac_abs_builddir=$ac_pwd$ac_dir_suffix
16614# for backward compatibility:
16615ac_top_builddir=$ac_top_build_prefix
9b2b7d69 16616
13b2be9c 16617case $srcdir in
81ecdfbb 16618 .) # We are building in place.
13b2be9c 16619 ac_srcdir=.
81ecdfbb
RW
16620 ac_top_srcdir=$ac_top_builddir_sub
16621 ac_abs_top_srcdir=$ac_pwd ;;
16622 [\\/]* | ?:[\\/]* ) # Absolute name.
13b2be9c 16623 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
16624 ac_top_srcdir=$srcdir
16625 ac_abs_top_srcdir=$srcdir ;;
16626 *) # Relative name.
16627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16628 ac_top_srcdir=$ac_top_build_prefix$srcdir
16629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13b2be9c 16630esac
81ecdfbb 16631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
ab509236 16632
252b5132 16633
81ecdfbb
RW
16634 case $ac_mode in
16635 :F)
16636 #
16637 # CONFIG_FILE
16638 #
9b2b7d69 16639
13b2be9c
DJ
16640 case $INSTALL in
16641 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
81ecdfbb
RW
16642 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16643 esac
16644 ac_MKDIR_P=$MKDIR_P
16645 case $MKDIR_P in
16646 [\\/$]* | ?:[\\/]* ) ;;
16647 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
c8615825 16648 esac
81ecdfbb 16649_ACEOF
9b2b7d69 16650
81ecdfbb
RW
16651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16652# If the template does not know about datarootdir, expand it.
16653# FIXME: This hack should be removed a few years after 2.60.
16654ac_datarootdir_hack=; ac_datarootdir_seen=
16655ac_sed_dataroot='
16656/datarootdir/ {
16657 p
16658 q
16659}
16660/@datadir@/p
16661/@docdir@/p
16662/@infodir@/p
16663/@localedir@/p
16664/@mandir@/p'
16665case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16666*datarootdir*) ac_datarootdir_seen=yes;;
16667*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16669$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16670_ACEOF
16671cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16672 ac_datarootdir_hack='
16673 s&@datadir@&$datadir&g
16674 s&@docdir@&$docdir&g
16675 s&@infodir@&$infodir&g
16676 s&@localedir@&$localedir&g
16677 s&@mandir@&$mandir&g
16678 s&\\\${datarootdir}&$datarootdir&g' ;;
16679esac
13b2be9c 16680_ACEOF
81ecdfbb
RW
16681
16682# Neutralize VPATH when `$srcdir' = `.'.
16683# Shell code in configure.ac might set extrasub.
16684# FIXME: do we really want to maintain this feature?
16685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16686ac_sed_extra="$ac_vpsub
13b2be9c
DJ
16687$extrasub
16688_ACEOF
81ecdfbb 16689cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13b2be9c
DJ
16690:t
16691/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
81ecdfbb
RW
16692s|@configure_input@|$ac_sed_conf_input|;t t
16693s&@top_builddir@&$ac_top_builddir_sub&;t t
16694s&@top_build_prefix@&$ac_top_build_prefix&;t t
16695s&@srcdir@&$ac_srcdir&;t t
16696s&@abs_srcdir@&$ac_abs_srcdir&;t t
16697s&@top_srcdir@&$ac_top_srcdir&;t t
16698s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16699s&@builddir@&$ac_builddir&;t t
16700s&@abs_builddir@&$ac_abs_builddir&;t t
16701s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16702s&@INSTALL@&$ac_INSTALL&;t t
16703s&@MKDIR_P@&$ac_MKDIR_P&;t t
16704$ac_datarootdir_hack
16705"
d0ac1c44
SM
16706eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16707 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16708
16709test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
16710 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16711 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16712 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 16713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16714which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 16715$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 16716which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 16717
d0ac1c44 16718 rm -f "$ac_tmp/stdin"
13b2be9c 16719 case $ac_file in
d0ac1c44
SM
16720 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16721 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 16722 esac \
d0ac1c44 16723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
16724 ;;
16725 :H)
16726 #
16727 # CONFIG_HEADER
16728 #
13b2be9c 16729 if test x"$ac_file" != x-; then
81ecdfbb
RW
16730 {
16731 $as_echo "/* $configure_input */" \
d0ac1c44
SM
16732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16733 } >"$ac_tmp/config.h" \
16734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16735 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16737$as_echo "$as_me: $ac_file is unchanged" >&6;}
13b2be9c 16738 else
81ecdfbb 16739 rm -f "$ac_file"
d0ac1c44
SM
16740 mv "$ac_tmp/config.h" "$ac_file" \
16741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9b2b7d69 16742 fi
13b2be9c 16743 else
81ecdfbb 16744 $as_echo "/* $configure_input */" \
d0ac1c44
SM
16745 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16746 || as_fn_error $? "could not create -" "$LINENO" 5
9b2b7d69 16747 fi
81ecdfbb
RW
16748# Compute "$ac_file"'s index in $config_headers.
16749_am_arg="$ac_file"
13b2be9c
DJ
16750_am_stamp_count=1
16751for _am_header in $config_headers :; do
16752 case $_am_header in
81ecdfbb 16753 $_am_arg | $_am_arg:* )
13b2be9c
DJ
16754 break ;;
16755 * )
16756 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16757 esac
16758done
81ecdfbb
RW
16759echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16760$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16761 X"$_am_arg" : 'X\(//\)[^/]' \| \
16762 X"$_am_arg" : 'X\(//\)$' \| \
16763 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16764$as_echo X"$_am_arg" |
16765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16766 s//\1/
16767 q
16768 }
16769 /^X\(\/\/\)[^/].*/{
16770 s//\1/
16771 q
16772 }
16773 /^X\(\/\/\)$/{
16774 s//\1/
16775 q
16776 }
16777 /^X\(\/\).*/{
16778 s//\1/
16779 q
16780 }
16781 s/.*/./; q'`/stamp-h$_am_stamp_count
16782 ;;
ab509236 16783
81ecdfbb
RW
16784 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16785$as_echo "$as_me: executing $ac_file commands" >&6;}
16786 ;;
16787 esac
13b2be9c
DJ
16788
16789
81ecdfbb
RW
16790 case $ac_file$ac_mode in
16791 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
d0ac1c44 16792 # Older Autoconf quotes --file arguments for eval, but not when files
81ecdfbb
RW
16793 # are listed without --file. Let's play safe and only enable the eval
16794 # if we detect the quoting.
16795 case $CONFIG_FILES in
16796 *\'*) eval set x "$CONFIG_FILES" ;;
16797 *) set x $CONFIG_FILES ;;
16798 esac
16799 shift
16800 for mf
16801 do
16802 # Strip MF so we end up with the name of the file.
16803 mf=`echo "$mf" | sed -e 's/:.*$//'`
16804 # Check whether this is an Automake generated Makefile or not.
d0ac1c44 16805 # We used to match only the files named 'Makefile.in', but
81ecdfbb
RW
16806 # some people rename them; so instead we look at the file content.
16807 # Grep'ing the first line is not enough: some people post-process
16808 # each Makefile.in and add a new line on top of each file to say so.
16809 # Grep'ing the whole file is not good either: AIX grep has a line
16810 # limit of 2048, but all sed's we know have understand at least 4000.
16811 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16812 dirpart=`$as_dirname -- "$mf" ||
13b2be9c 16813$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16814 X"$mf" : 'X\(//\)[^/]' \| \
16815 X"$mf" : 'X\(//\)$' \| \
81ecdfbb
RW
16816 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16817$as_echo X"$mf" |
16818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16819 s//\1/
16820 q
16821 }
16822 /^X\(\/\/\)[^/].*/{
16823 s//\1/
16824 q
16825 }
16826 /^X\(\/\/\)$/{
16827 s//\1/
16828 q
16829 }
16830 /^X\(\/\).*/{
16831 s//\1/
16832 q
16833 }
16834 s/.*/./; q'`
16835 else
16836 continue
16837 fi
16838 # Extract the definition of DEPDIR, am__include, and am__quote
d0ac1c44 16839 # from the Makefile without running 'make'.
81ecdfbb
RW
16840 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16841 test -z "$DEPDIR" && continue
16842 am__include=`sed -n 's/^am__include = //p' < "$mf"`
d0ac1c44 16843 test -z "$am__include" && continue
81ecdfbb 16844 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
81ecdfbb
RW
16845 # Find all dependency output files, they are included files with
16846 # $(DEPDIR) in their names. We invoke sed twice because it is the
16847 # simplest approach to changing $(DEPDIR) to its actual value in the
16848 # expansion.
16849 for file in `sed -n "
16850 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
d0ac1c44 16851 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
81ecdfbb
RW
16852 # Make sure the directory exists.
16853 test -f "$dirpart/$file" && continue
16854 fdir=`$as_dirname -- "$file" ||
13b2be9c 16855$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
ab509236
L
16856 X"$file" : 'X\(//\)[^/]' \| \
16857 X"$file" : 'X\(//\)$' \| \
81ecdfbb
RW
16858 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16859$as_echo X"$file" |
16860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16861 s//\1/
16862 q
16863 }
16864 /^X\(\/\/\)[^/].*/{
16865 s//\1/
16866 q
16867 }
16868 /^X\(\/\/\)$/{
16869 s//\1/
16870 q
16871 }
16872 /^X\(\/\).*/{
16873 s//\1/
16874 q
16875 }
16876 s/.*/./; q'`
16877 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16878 # echo "creating $dirpart/$file"
16879 echo '# dummy' > "$dirpart/$file"
13b2be9c 16880 done
13b2be9c 16881 done
81ecdfbb 16882}
d7040cdb 16883 ;;
81ecdfbb 16884 "libtool":C)
d7040cdb
SE
16885
16886 # See if we are running on zsh, and set the options which allow our
16887 # commands through without removal of \ escapes.
16888 if test -n "${ZSH_VERSION+set}" ; then
16889 setopt NO_GLOB_SUBST
16890 fi
16891
16892 cfgfile="${ofile}T"
16893 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16894 $RM "$cfgfile"
16895
16896 cat <<_LT_EOF >> "$cfgfile"
16897#! $SHELL
16898
16899# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
718a6fd8 16900# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
d7040cdb
SE
16901# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16902# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16903#
718a6fd8 16904# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
f2c621e4 16905# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
718a6fd8 16906# Written by Gordon Matzigkeit, 1996
d7040cdb 16907#
718a6fd8 16908# This file is part of GNU Libtool.
d7040cdb 16909#
718a6fd8
SE
16910# GNU Libtool is free software; you can redistribute it and/or
16911# modify it under the terms of the GNU General Public License as
16912# published by the Free Software Foundation; either version 2 of
16913# the License, or (at your option) any later version.
d7040cdb 16914#
718a6fd8
SE
16915# As a special exception to the GNU General Public License,
16916# if you distribute this file as part of a program or library that
16917# is built using GNU Libtool, you may include this file under the
16918# same distribution terms that you use for the rest of that program.
d7040cdb 16919#
718a6fd8
SE
16920# GNU Libtool is distributed in the hope that it will be useful,
16921# but WITHOUT ANY WARRANTY; without even the implied warranty of
16922# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16923# GNU General Public License for more details.
d7040cdb 16924#
718a6fd8
SE
16925# You should have received a copy of the GNU General Public License
16926# along with GNU Libtool; see the file COPYING. If not, a copy
16927# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16928# obtained by writing to the Free Software Foundation, Inc.,
16929# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
d7040cdb
SE
16930
16931
16932# The names of the tagged configurations supported by this script.
16933available_tags=""
16934
16935# ### BEGIN LIBTOOL CONFIG
16936
16937# Which release of libtool.m4 was used?
16938macro_version=$macro_version
16939macro_revision=$macro_revision
16940
16941# Whether or not to build shared libraries.
16942build_libtool_libs=$enable_shared
16943
16944# Whether or not to build static libraries.
16945build_old_libs=$enable_static
16946
16947# What type of objects to build.
16948pic_mode=$pic_mode
16949
16950# Whether or not to optimize for fast installation.
16951fast_install=$enable_fast_install
16952
3725885a
RW
16953# Shell to use when invoking shell scripts.
16954SHELL=$lt_SHELL
16955
16956# An echo program that protects backslashes.
16957ECHO=$lt_ECHO
16958
d7040cdb
SE
16959# The host system.
16960host_alias=$host_alias
16961host=$host
16962host_os=$host_os
16963
16964# The build system.
16965build_alias=$build_alias
16966build=$build
16967build_os=$build_os
16968
16969# A sed program that does not truncate output.
16970SED=$lt_SED
16971
16972# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16973Xsed="\$SED -e 1s/^X//"
16974
16975# A grep program that handles long lines.
16976GREP=$lt_GREP
16977
16978# An ERE matcher.
16979EGREP=$lt_EGREP
16980
16981# A literal string matcher.
16982FGREP=$lt_FGREP
16983
16984# A BSD- or MS-compatible name lister.
16985NM=$lt_NM
16986
16987# Whether we need soft or hard links.
16988LN_S=$lt_LN_S
16989
16990# What is the maximum length of a command?
16991max_cmd_len=$max_cmd_len
16992
16993# Object file suffix (normally "o").
16994objext=$ac_objext
16995
16996# Executable file suffix (normally "").
16997exeext=$exeext
16998
16999# whether the shell understands "unset".
17000lt_unset=$lt_unset
17001
17002# turn spaces into newlines.
17003SP2NL=$lt_lt_SP2NL
17004
17005# turn newlines into spaces.
17006NL2SP=$lt_lt_NL2SP
17007
718a6fd8
SE
17008# An object symbol dumper.
17009OBJDUMP=$lt_OBJDUMP
17010
d7040cdb
SE
17011# Method to check whether dependent libraries are shared objects.
17012deplibs_check_method=$lt_deplibs_check_method
17013
f2c621e4 17014# Command to use when deplibs_check_method == "file_magic".
d7040cdb
SE
17015file_magic_cmd=$lt_file_magic_cmd
17016
17017# The archiver.
17018AR=$lt_AR
17019AR_FLAGS=$lt_AR_FLAGS
17020
17021# A symbol stripping program.
17022STRIP=$lt_STRIP
17023
17024# Commands used to install an old-style archive.
17025RANLIB=$lt_RANLIB
17026old_postinstall_cmds=$lt_old_postinstall_cmds
17027old_postuninstall_cmds=$lt_old_postuninstall_cmds
17028
3725885a
RW
17029# Whether to use a lock for old archive extraction.
17030lock_old_archive_extraction=$lock_old_archive_extraction
17031
d7040cdb
SE
17032# A C compiler.
17033LTCC=$lt_CC
17034
17035# LTCC compiler flags.
17036LTCFLAGS=$lt_CFLAGS
17037
17038# Take the output of nm and produce a listing of raw symbols and C names.
17039global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17040
17041# Transform the output of nm in a proper C declaration.
17042global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17043
17044# Transform the output of nm in a C name address pair.
17045global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17046
718a6fd8
SE
17047# Transform the output of nm in a C name address pair when lib prefix is needed.
17048global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17049
d7040cdb
SE
17050# The name of the directory that contains temporary libtool files.
17051objdir=$objdir
17052
d7040cdb
SE
17053# Used to examine libraries when file_magic_cmd begins with "file".
17054MAGIC_CMD=$MAGIC_CMD
17055
17056# Must we lock files when doing compilation?
17057need_locks=$lt_need_locks
17058
718a6fd8
SE
17059# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17060DSYMUTIL=$lt_DSYMUTIL
17061
17062# Tool to change global to local symbols on Mac OS X.
17063NMEDIT=$lt_NMEDIT
17064
17065# Tool to manipulate fat objects and archives on Mac OS X.
17066LIPO=$lt_LIPO
17067
17068# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17069OTOOL=$lt_OTOOL
17070
17071# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17072OTOOL64=$lt_OTOOL64
17073
d7040cdb
SE
17074# Old archive suffix (normally "a").
17075libext=$libext
17076
17077# Shared library suffix (normally ".so").
17078shrext_cmds=$lt_shrext_cmds
17079
17080# The commands to extract the exported symbol list from a shared archive.
17081extract_expsyms_cmds=$lt_extract_expsyms_cmds
17082
17083# Variables whose values should be saved in libtool wrapper scripts and
17084# restored at link time.
17085variables_saved_for_relink=$lt_variables_saved_for_relink
17086
17087# Do we need the "lib" prefix for modules?
17088need_lib_prefix=$need_lib_prefix
17089
17090# Do we need a version for libraries?
17091need_version=$need_version
17092
17093# Library versioning type.
17094version_type=$version_type
17095
17096# Shared library runtime path variable.
17097runpath_var=$runpath_var
17098
17099# Shared library path variable.
17100shlibpath_var=$shlibpath_var
17101
17102# Is shlibpath searched before the hard-coded library search path?
17103shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17104
17105# Format of library name prefix.
17106libname_spec=$lt_libname_spec
17107
17108# List of archive names. First name is the real one, the rest are links.
17109# The last name is the one that the linker finds with -lNAME
17110library_names_spec=$lt_library_names_spec
17111
17112# The coded name of the library, if different from the real name.
17113soname_spec=$lt_soname_spec
17114
3725885a
RW
17115# Permission mode override for installation of shared libraries.
17116install_override_mode=$lt_install_override_mode
17117
d7040cdb
SE
17118# Command to use after installation of a shared archive.
17119postinstall_cmds=$lt_postinstall_cmds
17120
17121# Command to use after uninstallation of a shared archive.
17122postuninstall_cmds=$lt_postuninstall_cmds
17123
17124# Commands used to finish a libtool library installation in a directory.
17125finish_cmds=$lt_finish_cmds
17126
17127# As "finish_cmds", except a single script fragment to be evaled but
17128# not shown.
17129finish_eval=$lt_finish_eval
17130
17131# Whether we should hardcode library paths into libraries.
17132hardcode_into_libs=$hardcode_into_libs
17133
17134# Compile-time system search path for libraries.
17135sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17136
17137# Run-time system search path for libraries.
17138sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17139
17140# Whether dlopen is supported.
17141dlopen_support=$enable_dlopen
17142
17143# Whether dlopen of programs is supported.
17144dlopen_self=$enable_dlopen_self
17145
17146# Whether dlopen of statically linked programs is supported.
17147dlopen_self_static=$enable_dlopen_self_static
17148
17149# Commands to strip libraries.
17150old_striplib=$lt_old_striplib
17151striplib=$lt_striplib
17152
17153
17154# The linker used to build libraries.
17155LD=$lt_LD
17156
3725885a
RW
17157# How to create reloadable object files.
17158reload_flag=$lt_reload_flag
17159reload_cmds=$lt_reload_cmds
17160
d7040cdb
SE
17161# Commands used to build an old-style archive.
17162old_archive_cmds=$lt_old_archive_cmds
17163
17164# A language specific compiler.
17165CC=$lt_compiler
17166
17167# Is the compiler the GNU compiler?
17168with_gcc=$GCC
17169
17170# Compiler flag to turn off builtin functions.
17171no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17172
df7b86aa
NC
17173# How to pass a linker flag through the compiler.
17174wl=$lt_lt_prog_compiler_wl
17175
f2c621e4
AS
17176# Additional compiler flags for building library objects.
17177pic_flag=$lt_lt_prog_compiler_pic
17178
d7040cdb
SE
17179# Compiler flag to prevent dynamic linking.
17180link_static_flag=$lt_lt_prog_compiler_static
17181
17182# Does compiler simultaneously support -c and -o options?
17183compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17184
17185# Whether or not to add -lc for building shared libraries.
17186build_libtool_need_lc=$archive_cmds_need_lc
17187
17188# Whether or not to disallow shared libs when runtime libs are static.
17189allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17190
17191# Compiler flag to allow reflexive dlopens.
17192export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17193
17194# Compiler flag to generate shared objects directly from archives.
17195whole_archive_flag_spec=$lt_whole_archive_flag_spec
17196
17197# Whether the compiler copes with passing no objects directly.
17198compiler_needs_object=$lt_compiler_needs_object
17199
17200# Create an old-style archive from a shared archive.
17201old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17202
17203# Create a temporary old-style archive to link instead of a shared archive.
17204old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17205
17206# Commands used to build a shared archive.
17207archive_cmds=$lt_archive_cmds
17208archive_expsym_cmds=$lt_archive_expsym_cmds
17209
17210# Commands used to build a loadable module if different from building
17211# a shared archive.
17212module_cmds=$lt_module_cmds
17213module_expsym_cmds=$lt_module_expsym_cmds
17214
17215# Whether we are building with GNU ld or not.
17216with_gnu_ld=$lt_with_gnu_ld
17217
17218# Flag that allows shared libraries with undefined symbols to be built.
17219allow_undefined_flag=$lt_allow_undefined_flag
17220
17221# Flag that enforces no undefined symbols.
17222no_undefined_flag=$lt_no_undefined_flag
17223
17224# Flag to hardcode \$libdir into a binary during linking.
17225# This must work even if \$libdir does not exist
17226hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17227
17228# If ld is used when linking, flag to hardcode \$libdir into a binary
17229# during linking. This must work even if \$libdir does not exist.
17230hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17231
17232# Whether we need a single "-rpath" flag with a separated argument.
17233hardcode_libdir_separator=$lt_hardcode_libdir_separator
17234
17235# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17236# DIR into the resulting binary.
17237hardcode_direct=$hardcode_direct
17238
17239# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17240# DIR into the resulting binary and the resulting library dependency is
17241# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17242# library is relocated.
17243hardcode_direct_absolute=$hardcode_direct_absolute
17244
17245# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17246# into the resulting binary.
17247hardcode_minus_L=$hardcode_minus_L
17248
17249# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17250# into the resulting binary.
17251hardcode_shlibpath_var=$hardcode_shlibpath_var
17252
17253# Set to "yes" if building a shared library automatically hardcodes DIR
17254# into the library and all subsequent libraries and executables linked
17255# against it.
17256hardcode_automatic=$hardcode_automatic
17257
17258# Set to yes if linker adds runtime paths of dependent libraries
17259# to runtime path list.
17260inherit_rpath=$inherit_rpath
17261
17262# Whether libtool must link a program against all its dependency libraries.
17263link_all_deplibs=$link_all_deplibs
17264
f2c621e4
AS
17265# Fix the shell variable \$srcfile for the compiler.
17266fix_srcfile_path=$lt_fix_srcfile_path
17267
d7040cdb
SE
17268# Set to "yes" if exported symbols are required.
17269always_export_symbols=$always_export_symbols
17270
17271# The commands to list exported symbols.
17272export_symbols_cmds=$lt_export_symbols_cmds
17273
17274# Symbols that should not be listed in the preloaded symbols.
17275exclude_expsyms=$lt_exclude_expsyms
17276
17277# Symbols that must always be exported.
17278include_expsyms=$lt_include_expsyms
17279
17280# Commands necessary for linking programs (against libraries) with templates.
17281prelink_cmds=$lt_prelink_cmds
17282
17283# Specify filename containing input files.
17284file_list_spec=$lt_file_list_spec
17285
17286# How to hardcode a shared library path into an executable.
17287hardcode_action=$hardcode_action
17288
17289# ### END LIBTOOL CONFIG
17290
17291_LT_EOF
17292
17293 case $host_os in
17294 aix3*)
17295 cat <<\_LT_EOF >> "$cfgfile"
17296# AIX sometimes has problems with the GCC collect2 program. For some
17297# reason, if we set the COLLECT_NAMES environment variable, the problems
17298# vanish in a puff of smoke.
17299if test "X${COLLECT_NAMES+set}" != Xset; then
17300 COLLECT_NAMES=
17301 export COLLECT_NAMES
17302fi
17303_LT_EOF
17304 ;;
17305 esac
17306
17307
17308ltmain="$ac_aux_dir/ltmain.sh"
17309
17310
17311 # We use sed instead of cat because bash on DJGPP gets confused if
17312 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17313 # text mode, it properly converts lines to CR/LF. This bash problem
17314 # is reportedly fixed, but why not run on old versions too?
f2c621e4
AS
17315 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17316 || (rm -f "$cfgfile"; exit 1)
17317
17318 case $xsi_shell in
17319 yes)
17320 cat << \_LT_EOF >> "$cfgfile"
17321
17322# func_dirname file append nondir_replacement
17323# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17324# otherwise set result to NONDIR_REPLACEMENT.
17325func_dirname ()
17326{
17327 case ${1} in
17328 */*) func_dirname_result="${1%/*}${2}" ;;
17329 * ) func_dirname_result="${3}" ;;
17330 esac
17331}
17332
17333# func_basename file
17334func_basename ()
17335{
17336 func_basename_result="${1##*/}"
17337}
17338
17339# func_dirname_and_basename file append nondir_replacement
17340# perform func_basename and func_dirname in a single function
17341# call:
17342# dirname: Compute the dirname of FILE. If nonempty,
17343# add APPEND to the result, otherwise set result
17344# to NONDIR_REPLACEMENT.
17345# value returned in "$func_dirname_result"
17346# basename: Compute filename of FILE.
17347# value retuned in "$func_basename_result"
17348# Implementation must be kept synchronized with func_dirname
17349# and func_basename. For efficiency, we do not delegate to
17350# those functions but instead duplicate the functionality here.
17351func_dirname_and_basename ()
17352{
17353 case ${1} in
17354 */*) func_dirname_result="${1%/*}${2}" ;;
17355 * ) func_dirname_result="${3}" ;;
17356 esac
17357 func_basename_result="${1##*/}"
17358}
17359
17360# func_stripname prefix suffix name
17361# strip PREFIX and SUFFIX off of NAME.
17362# PREFIX and SUFFIX must not contain globbing or regex special
17363# characters, hashes, percent signs, but SUFFIX may contain a leading
17364# dot (in which case that matches only a dot).
17365func_stripname ()
17366{
17367 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17368 # positional parameters, so assign one to ordinary parameter first.
17369 func_stripname_result=${3}
17370 func_stripname_result=${func_stripname_result#"${1}"}
17371 func_stripname_result=${func_stripname_result%"${2}"}
17372}
17373
17374# func_opt_split
17375func_opt_split ()
17376{
17377 func_opt_split_opt=${1%%=*}
17378 func_opt_split_arg=${1#*=}
17379}
17380
17381# func_lo2o object
17382func_lo2o ()
17383{
17384 case ${1} in
17385 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17386 *) func_lo2o_result=${1} ;;
17387 esac
17388}
17389
17390# func_xform libobj-or-source
17391func_xform ()
17392{
17393 func_xform_result=${1%.*}.lo
17394}
17395
17396# func_arith arithmetic-term...
17397func_arith ()
17398{
17399 func_arith_result=$(( $* ))
17400}
17401
17402# func_len string
17403# STRING may not start with a hyphen.
17404func_len ()
17405{
17406 func_len_result=${#1}
17407}
17408
17409_LT_EOF
17410 ;;
17411 *) # Bourne compatible functions.
17412 cat << \_LT_EOF >> "$cfgfile"
17413
17414# func_dirname file append nondir_replacement
17415# Compute the dirname of FILE. If nonempty, add APPEND to the result,
17416# otherwise set result to NONDIR_REPLACEMENT.
17417func_dirname ()
17418{
17419 # Extract subdirectory from the argument.
17420 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17421 if test "X$func_dirname_result" = "X${1}"; then
17422 func_dirname_result="${3}"
17423 else
17424 func_dirname_result="$func_dirname_result${2}"
17425 fi
17426}
17427
17428# func_basename file
17429func_basename ()
17430{
17431 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17432}
17433
17434
17435# func_stripname prefix suffix name
17436# strip PREFIX and SUFFIX off of NAME.
17437# PREFIX and SUFFIX must not contain globbing or regex special
17438# characters, hashes, percent signs, but SUFFIX may contain a leading
17439# dot (in which case that matches only a dot).
17440# func_strip_suffix prefix name
17441func_stripname ()
17442{
17443 case ${2} in
17444 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17445 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17446 esac
17447}
17448
17449# sed scripts:
17450my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17451my_sed_long_arg='1s/^-[^=]*=//'
17452
17453# func_opt_split
17454func_opt_split ()
17455{
17456 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17457 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17458}
17459
17460# func_lo2o object
17461func_lo2o ()
17462{
17463 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17464}
17465
17466# func_xform libobj-or-source
17467func_xform ()
17468{
17469 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17470}
17471
17472# func_arith arithmetic-term...
17473func_arith ()
17474{
17475 func_arith_result=`expr "$@"`
17476}
17477
17478# func_len string
17479# STRING may not start with a hyphen.
17480func_len ()
17481{
17482 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17483}
17484
17485_LT_EOF
17486esac
17487
17488case $lt_shell_append in
17489 yes)
17490 cat << \_LT_EOF >> "$cfgfile"
17491
17492# func_append var value
17493# Append VALUE to the end of shell variable VAR.
17494func_append ()
17495{
17496 eval "$1+=\$2"
17497}
17498_LT_EOF
17499 ;;
17500 *)
17501 cat << \_LT_EOF >> "$cfgfile"
17502
17503# func_append var value
17504# Append VALUE to the end of shell variable VAR.
17505func_append ()
17506{
17507 eval "$1=\$$1\$2"
17508}
17509
17510_LT_EOF
17511 ;;
17512 esac
17513
17514
17515 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17516 || (rm -f "$cfgfile"; exit 1)
17517
17518 mv -f "$cfgfile" "$ofile" ||
d7040cdb
SE
17519 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17520 chmod +x "$ofile"
17521
13b2be9c 17522 ;;
81ecdfbb 17523 "default-1":C)
20e95c23
DJ
17524 for ac_file in $CONFIG_FILES; do
17525 # Support "outfile[:infile[:infile...]]"
17526 case "$ac_file" in
17527 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17528 esac
17529 # PO directories have a Makefile.in generated from Makefile.in.in.
17530 case "$ac_file" in */Makefile.in)
17531 # Adjust a relative srcdir.
17532 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
3cac54d2 17533 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
20e95c23
DJ
17534 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17535 # In autoconf-2.13 it is called $ac_given_srcdir.
17536 # In autoconf-2.50 it is called $srcdir.
17537 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17538 case "$ac_given_srcdir" in
17539 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17540 /*) top_srcdir="$ac_given_srcdir" ;;
17541 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17542 esac
17543 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17544 rm -f "$ac_dir/POTFILES"
17545 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17546 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
17547 POMAKEFILEDEPS="POTFILES.in"
17548 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
17549 # on $ac_dir but don't depend on user-specified configuration
17550 # parameters.
17551 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17552 # The LINGUAS file contains the set of available languages.
17553 if test -n "$OBSOLETE_ALL_LINGUAS"; then
37a42ee9 17554 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
17555 fi
17556 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17557 # Hide the ALL_LINGUAS assigment from automake.
17558 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
17559 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17560 else
37a42ee9 17561 # The set of available languages was given in configure.ac.
20e95c23
DJ
17562 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
17563 fi
17564 case "$ac_given_srcdir" in
17565 .) srcdirpre= ;;
17566 *) srcdirpre='$(srcdir)/' ;;
17567 esac
17568 POFILES=
17569 GMOFILES=
17570 UPDATEPOFILES=
17571 DUMMYPOFILES=
17572 for lang in $ALL_LINGUAS; do
17573 POFILES="$POFILES $srcdirpre$lang.po"
17574 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
17575 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17576 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
17577 done
17578 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17579 # environment variable.
17580 INST_LINGUAS=
17581 if test -n "$ALL_LINGUAS"; then
17582 for presentlang in $ALL_LINGUAS; do
17583 useit=no
17584 if test "%UNSET%" != "$LINGUAS"; then
17585 desiredlanguages="$LINGUAS"
17586 else
17587 desiredlanguages="$ALL_LINGUAS"
17588 fi
17589 for desiredlang in $desiredlanguages; do
17590 # Use the presentlang catalog if desiredlang is
17591 # a. equal to presentlang, or
17592 # b. a variant of presentlang (because in this case,
17593 # presentlang can be used as a fallback for messages
17594 # which are not translated in the desiredlang catalog).
17595 case "$desiredlang" in
17596 "$presentlang"*) useit=yes;;
17597 esac
17598 done
17599 if test $useit = yes; then
17600 INST_LINGUAS="$INST_LINGUAS $presentlang"
17601 fi
17602 done
17603 fi
17604 CATALOGS=
17605 if test -n "$INST_LINGUAS"; then
17606 for lang in $INST_LINGUAS; do
17607 CATALOGS="$CATALOGS $lang.gmo"
17608 done
17609 fi
17610 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17611 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"
17612 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17613 if test -f "$f"; then
17614 case "$f" in
17615 *.orig | *.bak | *~) ;;
17616 *) cat "$f" >> "$ac_dir/Makefile" ;;
17617 esac
17618 fi
17619 done
17620 fi
17621 ;;
17622 esac
17623 done ;;
81ecdfbb 17624 "default":C) rm -f targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c itbl-cpu.h
252b5132
RH
17625 echo '#include "tc-'"${target_cpu_type}"'.h"' > targ-cpu.h
17626 echo '#include "obj-'"${obj_format}"'.h"' > obj-format.h
17627 echo '#include "te-'"${te_file}"'.h"' > targ-env.h
17628 echo '#include "itbl-'"${target_cpu_type}"'.h"' > itbl-cpu.h
17629 if test "x$cgen_cpu_prefix" != x ; then
17630 echo '#include "opcodes/'"${cgen_cpu_prefix}"'-desc.h"' > cgen-desc.h
20e95c23 17631 fi ;;
81ecdfbb 17632
13b2be9c 17633 esac
81ecdfbb 17634done # for ac_tag
13b2be9c 17635
13b2be9c 17636
81ecdfbb 17637as_fn_exit 0
13b2be9c 17638_ACEOF
13b2be9c
DJ
17639ac_clean_files=$ac_clean_files_save
17640
81ecdfbb 17641test $ac_write_fail = 0 ||
d0ac1c44 17642 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 17643
13b2be9c
DJ
17644
17645# configure is writing to config.log, and then calls config.status.
17646# config.status does its own redirection, appending to config.log.
17647# Unfortunately, on DOS this fails, as config.log is still kept open
17648# by configure, so config.status won't be able to write to it; its
17649# output is simply discarded. So we exec the FD to /dev/null,
17650# effectively closing config.log, so it can be properly (re)opened and
17651# appended to by config.status. When coming back to configure, we
17652# need to make the FD available again.
17653if test "$no_create" != yes; then
17654 ac_cs_success=:
17655 ac_config_status_args=
17656 test "$silent" = yes &&
17657 ac_config_status_args="$ac_config_status_args --quiet"
17658 exec 5>/dev/null
17659 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17660 exec 5>>config.log
17661 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17662 # would make configure fail if this is the last instruction.
d0ac1c44 17663 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
17664fi
17665if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17667$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13b2be9c 17668fi
252b5132 17669
This page took 2.443851 seconds and 4 git commands to generate.