]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - sim/mips/configure
sim: unify environment build settings
[thirdparty/binutils-gdb.git] / sim / mips / configure
CommitLineData
c906108c 1#! /bin/sh
b7026657 2# Guess values for system-dependent variables and create Makefiles.
d0ac1c44
SM
3# Generated by GNU Autoconf 2.69.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
81ecdfbb 7#
b7026657 8#
b7026657
AC
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## -------------------- ##
c906108c 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 :
b7026657
AC
18 emulate sh
19 NULLCMD=:
81ecdfbb 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
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
b7026657 31fi
c906108c 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 }
b7026657 79fi
c906108c
SS
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
b7026657
AC
122PS1='$ '
123PS2='> '
124PS4='+ '
c906108c 125
b7026657 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
6bb11ab3
L
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
b7026657 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."
b7026657 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."
b7026657 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
c906108c 426
81ecdfbb
RW
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657
AC
429 as_expr=expr
430else
431 as_expr=false
432fi
c906108c 433
81ecdfbb 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
435 as_basename=basename
436else
437 as_basename=false
438fi
c906108c 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
c906108c 445
81ecdfbb 446as_me=`$as_basename -- "$0" ||
b7026657
AC
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'`
c906108c 464
b7026657
AC
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
c906108c 471
c906108c 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 |
b7026657 482 sed '
81ecdfbb
RW
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
b7026657 487 N
81ecdfbb
RW
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
b7026657 490 t loop
81ecdfbb 491 s/-\n.*//
b7026657 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; }
b7026657 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
b7026657
AC
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"
b7026657
AC
504 # Exit status is that of the last command.
505 exit
506}
c906108c 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';;
b7026657 519esac
c906108c 520
81ecdfbb
RW
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
b7026657 524else
81ecdfbb
RW
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
b7026657 527fi
81ecdfbb
RW
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 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'
b7026657 541 fi
b7026657 542else
d0ac1c44 543 as_ln_s='cp -pR'
b7026657 544fi
81ecdfbb
RW
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
c906108c 547
b7026657 548if mkdir -p . 2>/dev/null; then
81ecdfbb 549 as_mkdir_p='mkdir -p "$as_dir"'
b7026657
AC
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
c906108c 554
d0ac1c44
SM
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
c906108c 557
b7026657
AC
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 560
b7026657
AC
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 563
6bb11ab3
L
564SHELL=${CONFIG_SHELL-/bin/sh}
565
c906108c 566
d0ac1c44
SM
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
c906108c 569
b7026657 570# Name of the host.
d0ac1c44 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b7026657
AC
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
c906108c 574
c906108c 575#
b7026657 576# Initializations.
c906108c 577#
b7026657 578ac_default_prefix=/usr/local
81ecdfbb 579ac_clean_files=
b7026657 580ac_config_libobj_dir=.
81ecdfbb 581LIBOBJS=
b7026657
AC
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
b7026657
AC
586
587# Identity of this package.
588PACKAGE_NAME=
589PACKAGE_TARNAME=
590PACKAGE_VERSION=
591PACKAGE_STRING=
592PACKAGE_BUGREPORT=
81ecdfbb 593PACKAGE_URL=
b7026657
AC
594
595ac_unique_file="Makefile.in"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
81ecdfbb 599#ifdef HAVE_SYS_TYPES_H
b7026657
AC
600# include <sys/types.h>
601#endif
81ecdfbb 602#ifdef HAVE_SYS_STAT_H
b7026657
AC
603# include <sys/stat.h>
604#endif
81ecdfbb 605#ifdef STDC_HEADERS
b7026657
AC
606# include <stdlib.h>
607# include <stddef.h>
608#else
81ecdfbb 609# ifdef HAVE_STDLIB_H
b7026657
AC
610# include <stdlib.h>
611# endif
612#endif
81ecdfbb
RW
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b7026657
AC
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
81ecdfbb 619#ifdef HAVE_STRINGS_H
b7026657
AC
620# include <strings.h>
621#endif
81ecdfbb 622#ifdef HAVE_INTTYPES_H
b7026657 623# include <inttypes.h>
b7026657 624#endif
81ecdfbb
RW
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
b7026657
AC
629# include <unistd.h>
630#endif"
c906108c 631
81ecdfbb
RW
632ac_subst_vars='LTLIBOBJS
633LIBOBJS
760b3e8b
MF
634sim_default_model
635sim_scache
81ecdfbb 636cgen_breaks
81ecdfbb 637XMKMF
81ecdfbb
RW
638sim_multi_obj
639sim_multi_src
640sim_multi_igen_configs
641sim_multi_flags
642sim_gen
8e394ffc
AB
643sim_micromips16_flags
644sim_micromips_flags
81ecdfbb
RW
645sim_m16_flags
646sim_igen_flags
647SIM_SUBTARGET
648REPORT_BUGS_TEXI
649REPORT_BUGS_TO
650PKGVERSION
81ecdfbb 651MAINT
31e6ad7d
MF
652MAINTAINER_MODE_FALSE
653MAINTAINER_MODE_TRUE
6bb11ab3
L
654lt_cv_dlopen_libs
655OTOOL64
656OTOOL
657LIPO
658NMEDIT
659DSYMUTIL
660AWK
661STRIP
662OBJDUMP
663LN_S
664NM
665ac_ct_DUMPBIN
666DUMPBIN
667LD
668FGREP
669SED
670LIBTOOL
671PLUGINS_FALSE
672PLUGINS_TRUE
aadc9410
MF
673zlibinc
674zlibdir
81ecdfbb
RW
675CATOBJEXT
676GENCAT
677INSTOBJEXT
678DATADIRNAME
679CATALOGS
680POSUB
681GMSGFMT
682XGETTEXT
683INCINTL
684LIBINTL_DEP
685LIBINTL
686USE_NLS
db2e4d67
MF
687CCDEPMODE
688DEPDIR
689am__leading_dot
5f3ef9d0 690PACKAGE
46f900c0 691C_DIALECT
81ecdfbb
RW
692RANLIB
693AR
c2783492 694LDFLAGS_FOR_BUILD
c25ea03d 695CFLAGS_FOR_BUILD
aa0fca16 696RANLIB_FOR_BUILD
81ecdfbb 697CC_FOR_BUILD
aa0fca16 698AR_FOR_BUILD
81ecdfbb
RW
699INSTALL_DATA
700INSTALL_SCRIPT
701INSTALL_PROGRAM
2232061b
MF
702EGREP
703GREP
c2783492
MF
704CPP
705OBJEXT
706EXEEXT
707ac_ct_CC
708CPPFLAGS
709LDFLAGS
710CFLAGS
711CC
81ecdfbb
RW
712target_os
713target_vendor
714target_cpu
715target
716host_os
717host_vendor
718host_cpu
719host
720build_os
721build_vendor
722build_cpu
723build
81ecdfbb
RW
724target_alias
725host_alias
726build_alias
727LIBS
728ECHO_T
729ECHO_N
730ECHO_C
731DEFS
732mandir
733localedir
734libdir
735psdir
736pdfdir
737dvidir
738htmldir
739infodir
740docdir
741oldincludedir
742includedir
743localstatedir
744sharedstatedir
745sysconfdir
746datadir
747datarootdir
748libexecdir
749sbindir
750bindir
751program_transform_name
752prefix
753exec_prefix
754PACKAGE_URL
755PACKAGE_BUGREPORT
756PACKAGE_STRING
757PACKAGE_VERSION
758PACKAGE_TARNAME
759PACKAGE_NAME
760PATH_SEPARATOR
136da8cd
MF
761SHELL
762WERROR_CFLAGS
763WARN_CFLAGS
764sim_reserved_bits
765sim_inline
766sim_hw
767sim_hw_objs
768sim_hw_cflags
136da8cd
MF
769sim_float
770sim_endian
771sim_bitsize
772sim_alignment'
b7026657 773ac_subst_files=''
81ecdfbb
RW
774ac_user_opts='
775enable_option_checking
aadc9410 776with_system_zlib
6bb11ab3
L
777enable_plugins
778enable_shared
779enable_static
780with_pic
781enable_fast_install
782with_gnu_ld
783enable_libtool_lock
81ecdfbb 784enable_maintainer_mode
81ecdfbb
RW
785enable_sim_debug
786enable_sim_stdio
787enable_sim_trace
788enable_sim_profile
347fe5bb 789enable_sim_inline
81ecdfbb
RW
790with_pkgversion
791with_bugurl
81ecdfbb 792enable_sim_alignment
2232061b 793enable_werror
81ecdfbb
RW
794enable_build_warnings
795enable_sim_build_warnings
796enable_sim_reserved_bits
797enable_sim_endian
798enable_sim_bitsize
799enable_sim_float
81ecdfbb
RW
800enable_sim_hardware
801with_x
802'
803 ac_precious_vars='build_alias
804host_alias
805target_alias
806CC
807CFLAGS
808LDFLAGS
809LIBS
810CPPFLAGS
811CPP
812XMKMF'
813
c906108c
SS
814
815# Initialize some variables set by options.
b7026657
AC
816ac_init_help=
817ac_init_version=false
81ecdfbb
RW
818ac_unrecognized_opts=
819ac_unrecognized_sep=
c906108c
SS
820# The variables have the same names as the options, with
821# dashes changed to underlines.
b7026657 822cache_file=/dev/null
c906108c 823exec_prefix=NONE
c906108c 824no_create=
c906108c
SS
825no_recursion=
826prefix=NONE
827program_prefix=NONE
828program_suffix=NONE
829program_transform_name=s,x,x,
830silent=
831site=
832srcdir=
c906108c
SS
833verbose=
834x_includes=NONE
835x_libraries=NONE
b7026657
AC
836
837# Installation directory options.
838# These are left unexpanded so users can "make install exec_prefix=/foo"
839# and all the variables that are supposed to be based on exec_prefix
840# by default will actually change.
841# Use braces instead of parens because sh, perl, etc. also accept them.
81ecdfbb 842# (The list follows the same order as the GNU Coding Standards.)
c906108c
SS
843bindir='${exec_prefix}/bin'
844sbindir='${exec_prefix}/sbin'
845libexecdir='${exec_prefix}/libexec'
81ecdfbb
RW
846datarootdir='${prefix}/share'
847datadir='${datarootdir}'
c906108c
SS
848sysconfdir='${prefix}/etc'
849sharedstatedir='${prefix}/com'
850localstatedir='${prefix}/var'
c906108c
SS
851includedir='${prefix}/include'
852oldincludedir='/usr/include'
81ecdfbb
RW
853docdir='${datarootdir}/doc/${PACKAGE}'
854infodir='${datarootdir}/info'
855htmldir='${docdir}'
856dvidir='${docdir}'
857pdfdir='${docdir}'
858psdir='${docdir}'
859libdir='${exec_prefix}/lib'
860localedir='${datarootdir}/locale'
861mandir='${datarootdir}/man'
c906108c 862
c906108c 863ac_prev=
81ecdfbb 864ac_dashdash=
c906108c
SS
865for ac_option
866do
c906108c
SS
867 # If the previous option needs an argument, assign it.
868 if test -n "$ac_prev"; then
81ecdfbb 869 eval $ac_prev=\$ac_option
c906108c
SS
870 ac_prev=
871 continue
872 fi
873
81ecdfbb 874 case $ac_option in
d0ac1c44
SM
875 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 *=) ac_optarg= ;;
877 *) ac_optarg=yes ;;
81ecdfbb 878 esac
c906108c
SS
879
880 # Accept the important Cygnus configure options, so we can diagnose typos.
881
81ecdfbb
RW
882 case $ac_dashdash$ac_option in
883 --)
884 ac_dashdash=yes ;;
c906108c
SS
885
886 -bindir | --bindir | --bindi | --bind | --bin | --bi)
887 ac_prev=bindir ;;
888 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b7026657 889 bindir=$ac_optarg ;;
c906108c
SS
890
891 -build | --build | --buil | --bui | --bu)
b7026657 892 ac_prev=build_alias ;;
c906108c 893 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b7026657 894 build_alias=$ac_optarg ;;
c906108c
SS
895
896 -cache-file | --cache-file | --cache-fil | --cache-fi \
897 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
898 ac_prev=cache_file ;;
899 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
900 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b7026657
AC
901 cache_file=$ac_optarg ;;
902
903 --config-cache | -C)
904 cache_file=config.cache ;;
c906108c 905
81ecdfbb 906 -datadir | --datadir | --datadi | --datad)
c906108c 907 ac_prev=datadir ;;
81ecdfbb 908 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b7026657 909 datadir=$ac_optarg ;;
c906108c 910
81ecdfbb
RW
911 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
912 | --dataroo | --dataro | --datar)
913 ac_prev=datarootdir ;;
914 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
915 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
916 datarootdir=$ac_optarg ;;
917
c906108c 918 -disable-* | --disable-*)
81ecdfbb 919 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 920 # Reject names that are not valid shell variable names.
81ecdfbb 921 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 922 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
923 ac_useropt_orig=$ac_useropt
924 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
925 case $ac_user_opts in
926 *"
927"enable_$ac_useropt"
928"*) ;;
929 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
930 ac_unrecognized_sep=', ';;
931 esac
932 eval enable_$ac_useropt=no ;;
933
934 -docdir | --docdir | --docdi | --doc | --do)
935 ac_prev=docdir ;;
936 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 docdir=$ac_optarg ;;
938
939 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
940 ac_prev=dvidir ;;
941 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 dvidir=$ac_optarg ;;
c906108c
SS
943
944 -enable-* | --enable-*)
81ecdfbb 945 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 946 # Reject names that are not valid shell variable names.
81ecdfbb 947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 948 as_fn_error $? "invalid feature name: $ac_useropt"
81ecdfbb
RW
949 ac_useropt_orig=$ac_useropt
950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
951 case $ac_user_opts in
952 *"
953"enable_$ac_useropt"
954"*) ;;
955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
956 ac_unrecognized_sep=', ';;
c906108c 957 esac
81ecdfbb 958 eval enable_$ac_useropt=\$ac_optarg ;;
c906108c
SS
959
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
b7026657 967 exec_prefix=$ac_optarg ;;
c906108c
SS
968
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
972
b7026657
AC
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
c906108c
SS
979
980 -host | --host | --hos | --ho)
b7026657 981 ac_prev=host_alias ;;
c906108c 982 -host=* | --host=* | --hos=* | --ho=*)
b7026657 983 host_alias=$ac_optarg ;;
c906108c 984
81ecdfbb
RW
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
990
c906108c
SS
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
b7026657 996 includedir=$ac_optarg ;;
c906108c
SS
997
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b7026657 1001 infodir=$ac_optarg ;;
c906108c
SS
1002
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b7026657 1006 libdir=$ac_optarg ;;
c906108c
SS
1007
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
b7026657 1013 libexecdir=$ac_optarg ;;
c906108c 1014
81ecdfbb
RW
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1019
c906108c 1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
81ecdfbb 1021 | --localstate | --localstat | --localsta | --localst | --locals)
c906108c
SS
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
81ecdfbb 1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b7026657 1025 localstatedir=$ac_optarg ;;
c906108c
SS
1026
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b7026657 1030 mandir=$ac_optarg ;;
c906108c
SS
1031
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1035
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b7026657 1037 | --no-cr | --no-c | -n)
c906108c
SS
1038 no_create=yes ;;
1039
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1043
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b7026657 1051 oldincludedir=$ac_optarg ;;
c906108c
SS
1052
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b7026657 1056 prefix=$ac_optarg ;;
c906108c
SS
1057
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b7026657 1063 program_prefix=$ac_optarg ;;
c906108c
SS
1064
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b7026657 1070 program_suffix=$ac_optarg ;;
c906108c
SS
1071
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
b7026657 1087 program_transform_name=$ac_optarg ;;
c906108c 1088
81ecdfbb
RW
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1093
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1098
c906108c
SS
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
b7026657 1107 sbindir=$ac_optarg ;;
c906108c
SS
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
b7026657 1118 sharedstatedir=$ac_optarg ;;
c906108c
SS
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
b7026657 1123 site=$ac_optarg ;;
e514a9d6 1124
c906108c
SS
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b7026657 1128 srcdir=$ac_optarg ;;
c906108c
SS
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b7026657 1135 sysconfdir=$ac_optarg ;;
c906108c
SS
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
b7026657 1138 ac_prev=target_alias ;;
c906108c 1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b7026657 1140 target_alias=$ac_optarg ;;
c906108c
SS
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
b7026657
AC
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
c906108c
SS
1147
1148 -with-* | --with-*)
81ecdfbb 1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 1150 # Reject names that are not valid shell variable names.
81ecdfbb 1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1152 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157"with_$ac_useropt"
1158"*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
c906108c 1161 esac
81ecdfbb 1162 eval with_$ac_useropt=\$ac_optarg ;;
c906108c
SS
1163
1164 -without-* | --without-*)
81ecdfbb 1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 1166 # Reject names that are not valid shell variable names.
81ecdfbb 1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d0ac1c44 1168 as_fn_error $? "invalid package name: $ac_useropt"
81ecdfbb
RW
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173"with_$ac_useropt"
1174"*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
c906108c
SS
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b7026657 1189 x_includes=$ac_optarg ;;
c906108c
SS
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b7026657 1196 x_libraries=$ac_optarg ;;
c906108c 1197
d0ac1c44
SM
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199Try \`$0 --help' for more information"
c906108c
SS
1200 ;;
1201
b7026657
AC
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
81ecdfbb
RW
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
d0ac1c44 1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
81ecdfbb
RW
1208 esac
1209 eval $ac_envvar=\$ac_optarg
b7026657
AC
1210 export $ac_envvar ;;
1211
c906108c 1212 *)
b7026657 1213 # FIXME: should be removed in autoconf 3.0.
81ecdfbb 1214 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b7026657 1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
81ecdfbb 1216 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d0ac1c44 1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
c906108c
SS
1218 ;;
1219
1220 esac
1221done
1222
1223if test -n "$ac_prev"; then
b7026657 1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d0ac1c44 1225 as_fn_error $? "missing argument to $ac_option"
c906108c 1226fi
c906108c 1227
81ecdfbb
RW
1228if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
d0ac1c44 1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
81ecdfbb 1232 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
b7026657 1233 esac
81ecdfbb 1234fi
c906108c 1235
81ecdfbb
RW
1236# Check all directory arguments for consistency.
1237for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir
c906108c 1241do
81ecdfbb
RW
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
b7026657 1250 case $ac_val in
81ecdfbb
RW
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
c906108c 1253 esac
d0ac1c44 1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
c906108c
SS
1255done
1256
b7026657
AC
1257# There might be people who depend on the old broken behavior: `$host'
1258# used to hold the argument of --host etc.
1259# FIXME: To remove some day.
1260build=$build_alias
1261host=$host_alias
1262target=$target_alias
1263
1264# FIXME: To remove some day.
1265if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
b7026657
AC
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271fi
c906108c 1272
b7026657
AC
1273ac_tool_prefix=
1274test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276test "$silent" = yes && exec 6>/dev/null
c906108c 1277
c906108c 1278
81ecdfbb
RW
1279ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280ac_ls_di=`ls -di .` &&
1281ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d0ac1c44 1282 as_fn_error $? "working directory cannot be determined"
81ecdfbb 1283test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d0ac1c44 1284 as_fn_error $? "pwd does not report name of working directory"
81ecdfbb
RW
1285
1286
c906108c
SS
1287# Find the source files, if location was not specified.
1288if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
81ecdfbb
RW
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296$as_echo X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
c906108c 1314 srcdir=$ac_confdir
81ecdfbb 1315 if test ! -r "$srcdir/$ac_unique_file"; then
c906108c
SS
1316 srcdir=..
1317 fi
1318else
1319 ac_srcdir_defaulted=no
1320fi
81ecdfbb
RW
1321if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d0ac1c44 1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
81ecdfbb
RW
1324fi
1325ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326ac_abs_confdir=`(
d0ac1c44 1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
81ecdfbb
RW
1328 pwd)`
1329# When building in place, set srcdir=.
1330if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332fi
1333# Remove unnecessary trailing slashes from srcdir.
1334# Double slashes in file names in object file debugging info
1335# mess up M-x gdb in Emacs.
1336case $srcdir in
1337*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338esac
1339for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344done
c906108c 1345
b7026657
AC
1346#
1347# Report the --help message.
1348#
1349if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
1353\`configure' configures this package to adapt to many kinds of systems.
c906108c 1354
b7026657 1355Usage: $0 [OPTION]... [VAR=VALUE]...
c906108c 1356
b7026657
AC
1357To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358VAR=VALUE. See below for descriptions of some of the useful variables.
c906108c 1359
b7026657 1360Defaults for the options are specified in brackets.
c906108c 1361
b7026657
AC
1362Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
d0ac1c44 1367 -q, --quiet, --silent do not print \`checking ...' messages
b7026657
AC
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
b7026657
AC
1373Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
81ecdfbb 1375 [$ac_default_prefix]
b7026657 1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
81ecdfbb 1377 [PREFIX]
c906108c 1378
b7026657
AC
1379By default, \`make install' will install all the files in
1380\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382for instance \`--prefix=\$HOME'.
c906108c 1383
b7026657
AC
1384For better control, use the options below.
1385
1386Fine tuning of the installation directories:
81ecdfbb
RW
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
b7026657
AC
1406_ACEOF
1407
1408 cat <<\_ACEOF
1409
1410Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414
1415X features:
1416 --x-includes=DIR X include files are in DIR
1417 --x-libraries=DIR X library files are in DIR
1418
1419System types:
1420 --build=BUILD configure for building on BUILD [guessed]
1421 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1422 --target=TARGET configure for building compilers for TARGET [HOST]
1423_ACEOF
c906108c 1424fi
b7026657
AC
1425
1426if test -n "$ac_init_help"; then
1427
1428 cat <<\_ACEOF
1429
1430Optional Features:
81ecdfbb 1431 --disable-option-checking ignore unrecognized --enable/--with options
b7026657
AC
1432 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1433 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
faa743bb 1434 --enable-plugins Enable support for plugins
6bb11ab3
L
1435 --enable-shared[=PKGS] build shared libraries [default=yes]
1436 --enable-static[=PKGS] build static libraries [default=yes]
1437 --enable-fast-install[=PKGS]
1438 optimize for fast installation [default=yes]
1439 --disable-libtool-lock avoid locking (might break parallel builds)
d0ac1c44
SM
1440 --enable-maintainer-mode
1441 enable make rules and dependencies not useful (and
1442 sometimes confusing) to the casual installer
8d0978fb
MF
1443 --enable-sim-debug=opts Enable debugging flags (for developers of the sim
1444 itself)
1445 --enable-sim-stdio Specify whether to use stdio for console
1446 input/output
1447 --enable-sim-trace=opts Enable tracing of simulated programs
1448 --enable-sim-profile=opts
1449 Enable profiling flags
1450 --enable-sim-inline=inlines
1451 Specify which functions should be inlined
1452 --enable-sim-alignment=align
1453 Specify strict, nonstrict or forced alignment of
1454 memory accesses
2232061b
MF
1455 --enable-werror treat compile warnings as errors
1456 --enable-build-warnings enable build-time compiler warnings if gcc is used
1457 --enable-sim-build-warnings
1458 enable SIM specific build-time compiler warnings if
1459 gcc is used
8d0978fb
MF
1460 --enable-sim-reserved-bits
1461 Specify whether to check reserved bits in
1462 instruction
1463 --enable-sim-endian=endian
1464 Specify target byte endian orientation
1465 --enable-sim-bitsize=N Specify target bitsize (32 or 64)
1466 --enable-sim-float Specify that the target processor has floating point
1467 hardware
1517bd27
MF
1468 --enable-sim-hardware=LIST
1469 Specify the hardware to be included in the build.
b7026657
AC
1470
1471Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
aadc9410 1474 --with-system-zlib use installed libz
6bb11ab3
L
1475 --with-pic try to use only PIC/non-PIC objects [default=use
1476 both]
1477 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
bf12d44e 1478 --with-pkgversion=PKG Use PKG in the version string in place of "SIM"
6efef468 1479 --with-bugurl=URL Direct users to URL to report a bug
b7026657
AC
1480 --with-x use the X Window System
1481
1482Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
81ecdfbb 1487 LIBS libraries to pass to the linker, e.g. -l<library>
d0ac1c44 1488 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
81ecdfbb 1489 you have headers in a nonstandard directory <include dir>
b7026657 1490 CPP C preprocessor
81ecdfbb 1491 XMKMF Path to xmkmf, Makefile generator for X Window System
b7026657
AC
1492
1493Use these variables to override the choices made by `configure' or to help
1494it to find libraries and programs with nonstandard names/locations.
1495
81ecdfbb 1496Report bugs to the package provider.
b7026657 1497_ACEOF
81ecdfbb 1498ac_status=$?
c906108c
SS
1499fi
1500
b7026657
AC
1501if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
b7026657 1503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
81ecdfbb
RW
1504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
b7026657 1507 ac_builddir=.
c906108c 1508
81ecdfbb
RW
1509case "$ac_dir" in
1510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511*)
1512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513 # A ".." for each directory in $ac_dir_suffix.
1514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519esac
1520ac_abs_top_builddir=$ac_pwd
1521ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522# for backward compatibility:
1523ac_top_builddir=$ac_top_build_prefix
c906108c 1524
b7026657 1525case $srcdir in
81ecdfbb 1526 .) # We are building in place.
b7026657 1527 ac_srcdir=.
81ecdfbb
RW
1528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 1531 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
1532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 1538esac
81ecdfbb
RW
1539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540
1541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
b7026657 1549 else
81ecdfbb
RW
1550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
b7026657
AC
1553 done
1554fi
1555
81ecdfbb 1556test -n "$ac_init_help" && exit $ac_status
b7026657
AC
1557if $ac_init_version; then
1558 cat <<\_ACEOF
81ecdfbb 1559configure
d0ac1c44 1560generated by GNU Autoconf 2.69
b7026657 1561
d0ac1c44 1562Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
1563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
1565_ACEOF
81ecdfbb 1566 exit
b7026657 1567fi
b7026657 1568
81ecdfbb
RW
1569## ------------------------ ##
1570## Autoconf initialization. ##
1571## ------------------------ ##
b7026657 1572
81ecdfbb
RW
1573# ac_fn_c_try_compile LINENO
1574# --------------------------
1575# Try to compile conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_compile ()
b7026657 1577{
81ecdfbb
RW
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600else
1601 $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1603
81ecdfbb
RW
1604 ac_retval=1
1605fi
d0ac1c44
SM
1606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607 as_fn_set_status $ac_retval
b7026657 1608
81ecdfbb 1609} # ac_fn_c_try_compile
b7026657 1610
81ecdfbb
RW
1611# ac_fn_c_try_cpp LINENO
1612# ----------------------
1613# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_cpp ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 if { { ac_try="$ac_cpp conftest.$ac_ext"
1618case "(($ac_try" in
1619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1620 *) ac_try_echo=$ac_try;;
1621esac
1622eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1623$as_echo "$ac_try_echo"; } >&5
1624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1625 ac_status=$?
1626 if test -s conftest.err; then
1627 grep -v '^ *+' conftest.err >conftest.er1
1628 cat conftest.er1 >&5
1629 mv -f conftest.er1 conftest.err
1630 fi
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d0ac1c44 1632 test $ac_status = 0; } > conftest.i && {
81ecdfbb
RW
1633 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1634 test ! -s conftest.err
1635 }; then :
1636 ac_retval=0
1637else
1638 $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
b7026657 1640
81ecdfbb
RW
1641 ac_retval=1
1642fi
d0ac1c44
SM
1643 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1644 as_fn_set_status $ac_retval
b7026657 1645
81ecdfbb
RW
1646} # ac_fn_c_try_cpp
1647
1648# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1649# -------------------------------------------------------
1650# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1651# the include files in INCLUDES and setting the cache variable VAR
1652# accordingly.
1653ac_fn_c_check_header_mongrel ()
1654{
1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
d0ac1c44 1656 if eval \${$3+:} false; then :
81ecdfbb
RW
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1658$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1659if eval \${$3+:} false; then :
81ecdfbb
RW
1660 $as_echo_n "(cached) " >&6
1661fi
1662eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664$as_echo "$ac_res" >&6; }
1665else
1666 # Is the header compilable?
1667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1668$as_echo_n "checking $2 usability... " >&6; }
1669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670/* end confdefs.h. */
1671$4
1672#include <$2>
1673_ACEOF
1674if ac_fn_c_try_compile "$LINENO"; then :
1675 ac_header_compiler=yes
1676else
1677 ac_header_compiler=no
1678fi
1679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1681$as_echo "$ac_header_compiler" >&6; }
1682
1683# Is the header present?
1684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1685$as_echo_n "checking $2 presence... " >&6; }
1686cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687/* end confdefs.h. */
1688#include <$2>
1689_ACEOF
1690if ac_fn_c_try_cpp "$LINENO"; then :
1691 ac_header_preproc=yes
1692else
1693 ac_header_preproc=no
1694fi
d0ac1c44 1695rm -f conftest.err conftest.i conftest.$ac_ext
81ecdfbb
RW
1696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1697$as_echo "$ac_header_preproc" >&6; }
1698
1699# So? What about this header?
1700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1701 yes:no: )
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1703$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1705$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 ;;
1707 no:yes:* )
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1709$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1711$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1713$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1715$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1717$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718 ;;
1719esac
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1722if eval \${$3+:} false; then :
81ecdfbb
RW
1723 $as_echo_n "(cached) " >&6
1724else
1725 eval "$3=\$ac_header_compiler"
1726fi
1727eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729$as_echo "$ac_res" >&6; }
1730fi
d0ac1c44 1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1732
1733} # ac_fn_c_check_header_mongrel
1734
1735# ac_fn_c_try_run LINENO
1736# ----------------------
1737# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1738# that executables *can* be run.
1739ac_fn_c_try_run ()
1740{
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_link"
1743case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746esac
1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748$as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>&5
1750 ac_status=$?
1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1753 { { case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756esac
1757eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758$as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_try") 2>&5
1760 ac_status=$?
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1762 test $ac_status = 0; }; }; then :
1763 ac_retval=0
1764else
1765 $as_echo "$as_me: program exited with status $ac_status" >&5
1766 $as_echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769 ac_retval=$ac_status
1770fi
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
81ecdfbb
RW
1774
1775} # ac_fn_c_try_run
1776
1777# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1778# -------------------------------------------------------
1779# Tests whether HEADER exists and can be compiled using the include files in
1780# INCLUDES, setting the cache variable VAR accordingly.
1781ac_fn_c_check_header_compile ()
1782{
1783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1786if eval \${$3+:} false; then :
81ecdfbb
RW
1787 $as_echo_n "(cached) " >&6
1788else
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790/* end confdefs.h. */
1791$4
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_compile "$LINENO"; then :
1795 eval "$3=yes"
1796else
1797 eval "$3=no"
1798fi
1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
d0ac1c44 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1805
1806} # ac_fn_c_check_header_compile
1807
1808# ac_fn_c_try_link LINENO
1809# -----------------------
1810# Try to link conftest.$ac_ext, and return whether this succeeded.
1811ac_fn_c_try_link ()
1812{
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext conftest$ac_exeext
1815 if { { ac_try="$ac_link"
1816case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_link") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1828 fi
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest$ac_exeext && {
1834 test "$cross_compiling" = yes ||
d0ac1c44 1835 test -x conftest$ac_exeext
81ecdfbb
RW
1836 }; then :
1837 ac_retval=0
1838else
1839 $as_echo "$as_me: failed program was:" >&5
1840sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_retval=1
1843fi
1844 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1845 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1846 # interfere with the next link command; also delete a directory that is
1847 # left behind by Apple's compiler. We do this before executing the actions.
1848 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d0ac1c44
SM
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
81ecdfbb
RW
1851
1852} # ac_fn_c_try_link
1853
1854# ac_fn_c_check_func LINENO FUNC VAR
1855# ----------------------------------
1856# Tests whether FUNC exists, setting the cache variable VAR accordingly
1857ac_fn_c_check_func ()
1858{
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861$as_echo_n "checking for $2... " >&6; }
d0ac1c44 1862if eval \${$3+:} false; then :
81ecdfbb
RW
1863 $as_echo_n "(cached) " >&6
1864else
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866/* end confdefs.h. */
1867/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1869#define $2 innocuous_$2
1870
1871/* System header to define __stub macros and hopefully few prototypes,
1872 which can conflict with char $2 (); below.
1873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1874 <limits.h> exists even on freestanding compilers. */
1875
1876#ifdef __STDC__
1877# include <limits.h>
1878#else
1879# include <assert.h>
1880#endif
1881
1882#undef $2
1883
1884/* Override any GCC internal prototype to avoid an error.
1885 Use char because int might match the return type of a GCC
1886 builtin and then its argument prototype would still apply. */
1887#ifdef __cplusplus
1888extern "C"
1889#endif
1890char $2 ();
1891/* The GNU C library defines this for functions which it implements
1892 to always fail with ENOSYS. Some functions are actually named
1893 something starting with __ and the normal name is an alias. */
1894#if defined __stub_$2 || defined __stub___$2
1895choke me
1896#endif
1897
1898int
1899main ()
1900{
1901return $2 ();
1902 ;
1903 return 0;
1904}
1905_ACEOF
1906if ac_fn_c_try_link "$LINENO"; then :
1907 eval "$3=yes"
1908else
1909 eval "$3=no"
1910fi
1911rm -f core conftest.err conftest.$ac_objext \
1912 conftest$ac_exeext conftest.$ac_ext
1913fi
1914eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916$as_echo "$ac_res" >&6; }
d0ac1c44 1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
81ecdfbb
RW
1918
1919} # ac_fn_c_check_func
1920cat >config.log <<_ACEOF
1921This file contains any messages produced by compilers while
1922running configure, to aid debugging if configure makes a mistake.
1923
1924It was created by $as_me, which was
d0ac1c44 1925generated by GNU Autoconf 2.69. Invocation command line was
81ecdfbb
RW
1926
1927 $ $0 $@
1928
1929_ACEOF
1930exec 5>>config.log
1931{
1932cat <<_ASUNAME
1933## --------- ##
1934## Platform. ##
1935## --------- ##
1936
1937hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1938uname -m = `(uname -m) 2>/dev/null || echo unknown`
1939uname -r = `(uname -r) 2>/dev/null || echo unknown`
1940uname -s = `(uname -s) 2>/dev/null || echo unknown`
1941uname -v = `(uname -v) 2>/dev/null || echo unknown`
1942
1943/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1944/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1945
1946/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1947/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1948/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1949/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1950/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1951/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1952/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1953
1954_ASUNAME
1955
1956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1957for as_dir in $PATH
1958do
1959 IFS=$as_save_IFS
1960 test -z "$as_dir" && as_dir=.
1961 $as_echo "PATH: $as_dir"
1962 done
1963IFS=$as_save_IFS
1964
1965} >&5
1966
1967cat >&5 <<_ACEOF
b7026657
AC
1968
1969
1970## ----------- ##
1971## Core tests. ##
1972## ----------- ##
1973
1974_ACEOF
1975
1976
1977# Keep a trace of the command line.
1978# Strip out --no-create and --no-recursion so they do not pile up.
1979# Strip out --silent because we don't want to record it for future runs.
1980# Also quote any args containing shell meta-characters.
1981# Make two passes to allow for proper duplicate-argument suppression.
1982ac_configure_args=
1983ac_configure_args0=
1984ac_configure_args1=
b7026657
AC
1985ac_must_keep_next=false
1986for ac_pass in 1 2
1987do
1988 for ac_arg
1989 do
1990 case $ac_arg in
1991 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1993 | -silent | --silent | --silen | --sile | --sil)
1994 continue ;;
81ecdfbb
RW
1995 *\'*)
1996 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
1997 esac
1998 case $ac_pass in
81ecdfbb 1999 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
b7026657 2000 2)
81ecdfbb 2001 as_fn_append ac_configure_args1 " '$ac_arg'"
b7026657
AC
2002 if test $ac_must_keep_next = true; then
2003 ac_must_keep_next=false # Got value, back to normal.
2004 else
2005 case $ac_arg in
2006 *=* | --config-cache | -C | -disable-* | --disable-* \
2007 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2008 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2009 | -with-* | --with-* | -without-* | --without-* | --x)
2010 case "$ac_configure_args0 " in
2011 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2012 esac
2013 ;;
2014 -* ) ac_must_keep_next=true ;;
2015 esac
2016 fi
81ecdfbb 2017 as_fn_append ac_configure_args " '$ac_arg'"
b7026657
AC
2018 ;;
2019 esac
2020 done
2021done
81ecdfbb
RW
2022{ ac_configure_args0=; unset ac_configure_args0;}
2023{ ac_configure_args1=; unset ac_configure_args1;}
b7026657
AC
2024
2025# When interrupted or exit'd, cleanup temporary files, and complete
2026# config.log. We remove comments because anyway the quotes in there
2027# would cause problems or look ugly.
81ecdfbb
RW
2028# WARNING: Use '\'' to represent an apostrophe within the trap.
2029# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
b7026657
AC
2030trap 'exit_status=$?
2031 # Save into config.log some information that might help in debugging.
2032 {
2033 echo
2034
d0ac1c44 2035 $as_echo "## ---------------- ##
b7026657 2036## Cache variables. ##
d0ac1c44 2037## ---------------- ##"
b7026657
AC
2038 echo
2039 # The following way of writing the cache mishandles newlines in values,
81ecdfbb
RW
2040(
2041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2042 eval ac_val=\$$ac_var
2043 case $ac_val in #(
2044 *${as_nl}*)
2045 case $ac_var in #(
2046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2047$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2048 esac
2049 case $ac_var in #(
2050 _ | IFS | as_nl) ;; #(
2051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2052 *) { eval $ac_var=; unset $ac_var;} ;;
2053 esac ;;
2054 esac
2055 done
b7026657 2056 (set) 2>&1 |
81ecdfbb
RW
2057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2058 *${as_nl}ac_space=\ *)
b7026657 2059 sed -n \
81ecdfbb
RW
2060 "s/'\''/'\''\\\\'\'''\''/g;
2061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2062 ;; #(
b7026657 2063 *)
81ecdfbb 2064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 2065 ;;
81ecdfbb
RW
2066 esac |
2067 sort
2068)
b7026657
AC
2069 echo
2070
d0ac1c44 2071 $as_echo "## ----------------- ##
b7026657 2072## Output variables. ##
d0ac1c44 2073## ----------------- ##"
b7026657
AC
2074 echo
2075 for ac_var in $ac_subst_vars
2076 do
81ecdfbb
RW
2077 eval ac_val=\$$ac_var
2078 case $ac_val in
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2080 esac
2081 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2082 done | sort
2083 echo
2084
2085 if test -n "$ac_subst_files"; then
d0ac1c44 2086 $as_echo "## ------------------- ##
81ecdfbb 2087## File substitutions. ##
d0ac1c44 2088## ------------------- ##"
b7026657
AC
2089 echo
2090 for ac_var in $ac_subst_files
2091 do
81ecdfbb
RW
2092 eval ac_val=\$$ac_var
2093 case $ac_val in
2094 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2095 esac
2096 $as_echo "$ac_var='\''$ac_val'\''"
b7026657
AC
2097 done | sort
2098 echo
2099 fi
2100
2101 if test -s confdefs.h; then
d0ac1c44 2102 $as_echo "## ----------- ##
b7026657 2103## confdefs.h. ##
d0ac1c44 2104## ----------- ##"
b7026657 2105 echo
81ecdfbb 2106 cat confdefs.h
b7026657
AC
2107 echo
2108 fi
2109 test "$ac_signal" != 0 &&
81ecdfbb
RW
2110 $as_echo "$as_me: caught signal $ac_signal"
2111 $as_echo "$as_me: exit $exit_status"
b7026657 2112 } >&5
81ecdfbb
RW
2113 rm -f core *.core core.conftest.* &&
2114 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
b7026657 2115 exit $exit_status
81ecdfbb 2116' 0
b7026657 2117for ac_signal in 1 2 13 15; do
81ecdfbb 2118 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b7026657
AC
2119done
2120ac_signal=0
2121
2122# confdefs.h avoids OS command line length limits that DEFS can exceed.
81ecdfbb
RW
2123rm -f -r conftest* confdefs.h
2124
2125$as_echo "/* confdefs.h */" > confdefs.h
b7026657
AC
2126
2127# Predefined preprocessor variables.
2128
2129cat >>confdefs.h <<_ACEOF
2130#define PACKAGE_NAME "$PACKAGE_NAME"
2131_ACEOF
2132
b7026657
AC
2133cat >>confdefs.h <<_ACEOF
2134#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2135_ACEOF
2136
b7026657
AC
2137cat >>confdefs.h <<_ACEOF
2138#define PACKAGE_VERSION "$PACKAGE_VERSION"
2139_ACEOF
2140
b7026657
AC
2141cat >>confdefs.h <<_ACEOF
2142#define PACKAGE_STRING "$PACKAGE_STRING"
2143_ACEOF
2144
b7026657
AC
2145cat >>confdefs.h <<_ACEOF
2146#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2147_ACEOF
2148
81ecdfbb
RW
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_URL "$PACKAGE_URL"
2151_ACEOF
2152
b7026657
AC
2153
2154# Let the site file select an alternate cache file if it wants to.
81ecdfbb
RW
2155# Prefer an explicitly selected file to automatically selected ones.
2156ac_site_file1=NONE
2157ac_site_file2=NONE
2158if test -n "$CONFIG_SITE"; then
d0ac1c44
SM
2159 # We do not want a PATH search for config.site.
2160 case $CONFIG_SITE in #((
2161 -*) ac_site_file1=./$CONFIG_SITE;;
2162 */*) ac_site_file1=$CONFIG_SITE;;
2163 *) ac_site_file1=./$CONFIG_SITE;;
2164 esac
81ecdfbb
RW
2165elif test "x$prefix" != xNONE; then
2166 ac_site_file1=$prefix/share/config.site
2167 ac_site_file2=$prefix/etc/config.site
2168else
2169 ac_site_file1=$ac_default_prefix/share/config.site
2170 ac_site_file2=$ac_default_prefix/etc/config.site
2171fi
2172for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2173do
2174 test "x$ac_site_file" = xNONE && continue
d0ac1c44 2175 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
81ecdfbb
RW
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2177$as_echo "$as_me: loading site script $ac_site_file" >&6;}
b7026657 2178 sed 's/^/| /' "$ac_site_file" >&5
d0ac1c44
SM
2179 . "$ac_site_file" \
2180 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182as_fn_error $? "failed to load site script $ac_site_file
2183See \`config.log' for more details" "$LINENO" 5; }
b7026657
AC
2184 fi
2185done
2186
2187if test -r "$cache_file"; then
d0ac1c44
SM
2188 # Some versions of bash will fail to source /dev/null (special files
2189 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2190 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
81ecdfbb
RW
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2192$as_echo "$as_me: loading cache $cache_file" >&6;}
b7026657 2193 case $cache_file in
81ecdfbb
RW
2194 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2195 *) . "./$cache_file";;
b7026657
AC
2196 esac
2197 fi
c906108c 2198else
81ecdfbb
RW
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2200$as_echo "$as_me: creating cache $cache_file" >&6;}
b7026657
AC
2201 >$cache_file
2202fi
2203
2204# Check that the precious variables saved in the cache have kept the same
2205# value.
2206ac_cache_corrupted=false
81ecdfbb 2207for ac_var in $ac_precious_vars; do
b7026657
AC
2208 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2209 eval ac_new_set=\$ac_env_${ac_var}_set
81ecdfbb
RW
2210 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2211 eval ac_new_val=\$ac_env_${ac_var}_value
b7026657
AC
2212 case $ac_old_set,$ac_new_set in
2213 set,)
81ecdfbb
RW
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2215$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
b7026657
AC
2216 ac_cache_corrupted=: ;;
2217 ,set)
81ecdfbb
RW
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2219$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
b7026657
AC
2220 ac_cache_corrupted=: ;;
2221 ,);;
2222 *)
2223 if test "x$ac_old_val" != "x$ac_new_val"; then
81ecdfbb
RW
2224 # differences in whitespace do not lead to failure.
2225 ac_old_val_w=`echo x $ac_old_val`
2226 ac_new_val_w=`echo x $ac_new_val`
2227 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2229$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2230 ac_cache_corrupted=:
2231 else
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2233$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2234 eval $ac_var=\$ac_old_val
2235 fi
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2237$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2239$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
b7026657
AC
2240 fi;;
2241 esac
2242 # Pass precious variables to config.status.
2243 if test "$ac_new_set" = set; then
2244 case $ac_new_val in
81ecdfbb 2245 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
b7026657
AC
2246 *) ac_arg=$ac_var=$ac_new_val ;;
2247 esac
2248 case " $ac_configure_args " in
2249 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
81ecdfbb 2250 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
b7026657
AC
2251 esac
2252 fi
2253done
2254if $ac_cache_corrupted; then
81ecdfbb
RW
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2256$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2258$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d0ac1c44 2259 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
c906108c 2260fi
81ecdfbb
RW
2261## -------------------- ##
2262## Main body of script. ##
2263## -------------------- ##
b7026657
AC
2264
2265ac_ext=c
2266ac_cpp='$CPP $CPPFLAGS'
2267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270
2271
6bb11ab3
L
2272
2273
2274
2275
2276
c2783492
MF
2277ac_aux_dir=
2278for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2279 if test -f "$ac_dir/install-sh"; then
2280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/install-sh -c"
2282 break
2283 elif test -f "$ac_dir/install.sh"; then
2284 ac_aux_dir=$ac_dir
2285 ac_install_sh="$ac_aux_dir/install.sh -c"
2286 break
2287 elif test -f "$ac_dir/shtool"; then
2288 ac_aux_dir=$ac_dir
2289 ac_install_sh="$ac_aux_dir/shtool install -c"
2290 break
2291 fi
2292done
2293if test -z "$ac_aux_dir"; then
2294 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2295fi
2296
2297# These three variables are undocumented and unsupported,
2298# and are intended to be withdrawn in a future Autoconf release.
2299# They can cause serious problems if a builder's source tree is in a directory
2300# whose full name contains unusual characters.
2301ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2302ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2303ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2304
2305
2306# Make sure we can run config.sub.
2307$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2308 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2309
2310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2311$as_echo_n "checking build system type... " >&6; }
2312if ${ac_cv_build+:} false; then :
2313 $as_echo_n "(cached) " >&6
2314else
2315 ac_build_alias=$build_alias
2316test "x$ac_build_alias" = x &&
2317 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2318test "x$ac_build_alias" = x &&
2319 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2320ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2321 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2322
2323fi
2324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2325$as_echo "$ac_cv_build" >&6; }
2326case $ac_cv_build in
2327*-*-*) ;;
2328*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2329esac
2330build=$ac_cv_build
2331ac_save_IFS=$IFS; IFS='-'
2332set x $ac_cv_build
2333shift
2334build_cpu=$1
2335build_vendor=$2
2336shift; shift
2337# Remember, the first character of IFS is used to create $*,
2338# except with old shells:
2339build_os=$*
2340IFS=$ac_save_IFS
2341case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2342
2343
2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2345$as_echo_n "checking host system type... " >&6; }
2346if ${ac_cv_host+:} false; then :
2347 $as_echo_n "(cached) " >&6
2348else
2349 if test "x$host_alias" = x; then
2350 ac_cv_host=$ac_cv_build
2351else
2352 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2353 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2354fi
2355
2356fi
2357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2358$as_echo "$ac_cv_host" >&6; }
2359case $ac_cv_host in
2360*-*-*) ;;
2361*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2362esac
2363host=$ac_cv_host
2364ac_save_IFS=$IFS; IFS='-'
2365set x $ac_cv_host
2366shift
2367host_cpu=$1
2368host_vendor=$2
2369shift; shift
2370# Remember, the first character of IFS is used to create $*,
2371# except with old shells:
2372host_os=$*
2373IFS=$ac_save_IFS
2374case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2375
2376
2377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2378$as_echo_n "checking target system type... " >&6; }
2379if ${ac_cv_target+:} false; then :
2380 $as_echo_n "(cached) " >&6
2381else
2382 if test "x$target_alias" = x; then
2383 ac_cv_target=$ac_cv_host
2384else
2385 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2386 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2387fi
2388
2389fi
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2391$as_echo "$ac_cv_target" >&6; }
2392case $ac_cv_target in
2393*-*-*) ;;
2394*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2395esac
2396target=$ac_cv_target
2397ac_save_IFS=$IFS; IFS='-'
2398set x $ac_cv_target
2399shift
2400target_cpu=$1
2401target_vendor=$2
2402shift; shift
2403# Remember, the first character of IFS is used to create $*,
2404# except with old shells:
2405target_os=$*
2406IFS=$ac_save_IFS
2407case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2408
2409
2410# The aliases save the names the user supplied, while $host etc.
2411# will get canonicalized.
2412test -n "$target_alias" &&
2413 test "$program_prefix$program_suffix$program_transform_name" = \
2414 NONENONEs,x,x, &&
2415 program_prefix=${target_alias}-
6bb11ab3
L
2416ac_ext=c
2417ac_cpp='$CPP $CPPFLAGS'
2418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2420ac_compiler_gnu=$ac_cv_c_compiler_gnu
2421if test -n "$ac_tool_prefix"; then
2422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2423set dummy ${ac_tool_prefix}gcc; ac_word=$2
2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2425$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2426if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2427 $as_echo_n "(cached) " >&6
2428else
2429 if test -n "$CC"; then
2430 ac_cv_prog_CC="$CC" # Let the user override the test.
2431else
2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
2437 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2441 break 2
2442 fi
2443done
2444 done
2445IFS=$as_save_IFS
2446
2447fi
2448fi
2449CC=$ac_cv_prog_CC
2450if test -n "$CC"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2452$as_echo "$CC" >&6; }
2453else
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2455$as_echo "no" >&6; }
2456fi
2457
2458
2459fi
2460if test -z "$ac_cv_prog_CC"; then
2461 ac_ct_CC=$CC
2462 # Extract the first word of "gcc", so it can be a program name with args.
2463set dummy gcc; ac_word=$2
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2465$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2466if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2467 $as_echo_n "(cached) " >&6
2468else
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471else
2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473for as_dir in $PATH
2474do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2479 ac_cv_prog_ac_ct_CC="gcc"
2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483done
2484 done
2485IFS=$as_save_IFS
2486
2487fi
2488fi
2489ac_ct_CC=$ac_cv_prog_ac_ct_CC
2490if test -n "$ac_ct_CC"; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2492$as_echo "$ac_ct_CC" >&6; }
2493else
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2495$as_echo "no" >&6; }
2496fi
2497
2498 if test "x$ac_ct_CC" = x; then
2499 CC=""
2500 else
2501 case $cross_compiling:$ac_tool_warned in
2502yes:)
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2505ac_tool_warned=yes ;;
2506esac
2507 CC=$ac_ct_CC
2508 fi
2509else
2510 CC="$ac_cv_prog_CC"
2511fi
2512
2513if test -z "$CC"; then
2514 if test -n "$ac_tool_prefix"; then
2515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2516set dummy ${ac_tool_prefix}cc; ac_word=$2
2517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2519if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2520 $as_echo_n "(cached) " >&6
2521else
2522 if test -n "$CC"; then
2523 ac_cv_prog_CC="$CC" # Let the user override the test.
2524else
2525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2526for as_dir in $PATH
2527do
2528 IFS=$as_save_IFS
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2532 ac_cv_prog_CC="${ac_tool_prefix}cc"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2534 break 2
2535 fi
2536done
2537 done
2538IFS=$as_save_IFS
2539
2540fi
2541fi
2542CC=$ac_cv_prog_CC
2543if test -n "$CC"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2545$as_echo "$CC" >&6; }
2546else
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548$as_echo "no" >&6; }
2549fi
2550
2551
2552 fi
2553fi
2554if test -z "$CC"; then
2555 # Extract the first word of "cc", so it can be a program name with args.
2556set dummy cc; ac_word=$2
2557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2558$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2559if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2560 $as_echo_n "(cached) " >&6
2561else
2562 if test -n "$CC"; then
2563 ac_cv_prog_CC="$CC" # Let the user override the test.
2564else
2565 ac_prog_rejected=no
2566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567for as_dir in $PATH
2568do
2569 IFS=$as_save_IFS
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2573 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2574 ac_prog_rejected=yes
2575 continue
2576 fi
2577 ac_cv_prog_CC="cc"
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2580 fi
2581done
2582 done
2583IFS=$as_save_IFS
2584
2585if test $ac_prog_rejected = yes; then
2586 # We found a bogon in the path, so make sure we never use it.
2587 set dummy $ac_cv_prog_CC
2588 shift
2589 if test $# != 0; then
2590 # We chose a different compiler from the bogus one.
2591 # However, it has the same basename, so the bogon will be chosen
2592 # first if we set CC to just the basename; use the full file name.
2593 shift
2594 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2595 fi
2596fi
2597fi
2598fi
2599CC=$ac_cv_prog_CC
2600if test -n "$CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2602$as_echo "$CC" >&6; }
2603else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605$as_echo "no" >&6; }
2606fi
2607
2608
2609fi
2610if test -z "$CC"; then
2611 if test -n "$ac_tool_prefix"; then
2612 for ac_prog in cl.exe
2613 do
2614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2615set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2617$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2618if ${ac_cv_prog_CC+:} false; then :
6bb11ab3
L
2619 $as_echo_n "(cached) " >&6
2620else
2621 if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623else
2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625for as_dir in $PATH
2626do
2627 IFS=$as_save_IFS
2628 test -z "$as_dir" && as_dir=.
2629 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 break 2
2634 fi
2635done
2636 done
2637IFS=$as_save_IFS
2638
2639fi
2640fi
2641CC=$ac_cv_prog_CC
2642if test -n "$CC"; then
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2644$as_echo "$CC" >&6; }
2645else
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2647$as_echo "no" >&6; }
2648fi
2649
2650
2651 test -n "$CC" && break
2652 done
2653fi
2654if test -z "$CC"; then
2655 ac_ct_CC=$CC
2656 for ac_prog in cl.exe
2657do
2658 # Extract the first word of "$ac_prog", so it can be a program name with args.
2659set dummy $ac_prog; ac_word=$2
2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2661$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 2662if ${ac_cv_prog_ac_ct_CC+:} false; then :
6bb11ab3
L
2663 $as_echo_n "(cached) " >&6
2664else
2665 if test -n "$ac_ct_CC"; then
2666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2667else
2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
2673 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
2675 ac_cv_prog_ac_ct_CC="$ac_prog"
2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 break 2
2678 fi
2679done
2680 done
2681IFS=$as_save_IFS
2682
2683fi
2684fi
2685ac_ct_CC=$ac_cv_prog_ac_ct_CC
2686if test -n "$ac_ct_CC"; then
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2688$as_echo "$ac_ct_CC" >&6; }
2689else
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2691$as_echo "no" >&6; }
2692fi
2693
2694
2695 test -n "$ac_ct_CC" && break
2696done
2697
2698 if test "x$ac_ct_CC" = x; then
2699 CC=""
2700 else
2701 case $cross_compiling:$ac_tool_warned in
2702yes:)
2703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2705ac_tool_warned=yes ;;
2706esac
2707 CC=$ac_ct_CC
2708 fi
2709fi
2710
2711fi
2712
2713
2714test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2715$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2716as_fn_error $? "no acceptable C compiler found in \$PATH
2717See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2718
2719# Provide some information about the compiler.
2720$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2721set X $ac_compile
2722ac_compiler=$2
2723for ac_option in --version -v -V -qversion; do
2724 { { ac_try="$ac_compiler $ac_option >&5"
2725case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2728esac
2729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2730$as_echo "$ac_try_echo"; } >&5
2731 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2732 ac_status=$?
2733 if test -s conftest.err; then
2734 sed '10a\
2735... rest of stderr output deleted ...
2736 10q' conftest.err >conftest.er1
2737 cat conftest.er1 >&5
6bb11ab3 2738 fi
d0ac1c44 2739 rm -f conftest.er1 conftest.err
6bb11ab3
L
2740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2741 test $ac_status = 0; }
2742done
2743
2744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745/* end confdefs.h. */
2746
2747int
2748main ()
2749{
2750
2751 ;
2752 return 0;
2753}
2754_ACEOF
2755ac_clean_files_save=$ac_clean_files
d0ac1c44 2756ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
6bb11ab3
L
2757# Try to create an executable without -o first, disregard a.out.
2758# It will help us diagnose broken compilers, and finding out an intuition
2759# of exeext.
d0ac1c44
SM
2760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2761$as_echo_n "checking whether the C compiler works... " >&6; }
6bb11ab3
L
2762ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2763
2764# The possible output files:
2765ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2766
2767ac_rmfiles=
2768for ac_file in $ac_files
2769do
2770 case $ac_file in
2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 esac
2774done
2775rm -f $ac_rmfiles
2776
2777if { { ac_try="$ac_link_default"
2778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
2782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2783$as_echo "$ac_try_echo"; } >&5
2784 (eval "$ac_link_default") 2>&5
2785 ac_status=$?
2786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2787 test $ac_status = 0; }; then :
2788 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2789# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2790# in a Makefile. We should not override ac_cv_exeext if it was cached,
2791# so that the user can short-circuit this test for compilers unknown to
2792# Autoconf.
2793for ac_file in $ac_files ''
2794do
2795 test -f "$ac_file" || continue
2796 case $ac_file in
2797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2798 ;;
2799 [ab].out )
2800 # We found the default executable, but exeext='' is most
2801 # certainly right.
2802 break;;
2803 *.* )
2804 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2805 then :; else
2806 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2807 fi
2808 # We set ac_cv_exeext here because the later test for it is not
2809 # safe: cross compilers may not add the suffix if given an `-o'
2810 # argument, so we may need to know it at that point already.
2811 # Even if this section looks crufty: it has the advantage of
2812 # actually working.
2813 break;;
2814 * )
2815 break;;
2816 esac
2817done
2818test "$ac_cv_exeext" = no && ac_cv_exeext=
2819
2820else
2821 ac_file=''
2822fi
6bb11ab3 2823if test -z "$ac_file"; then :
d0ac1c44
SM
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825$as_echo "no" >&6; }
2826$as_echo "$as_me: failed program was:" >&5
6bb11ab3
L
2827sed 's/^/| /' conftest.$ac_ext >&5
2828
2829{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2830$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2831as_fn_error 77 "C compiler cannot create executables
2832See \`config.log' for more details" "$LINENO" 5; }
2833else
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2835$as_echo "yes" >&6; }
6bb11ab3 2836fi
d0ac1c44
SM
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2838$as_echo_n "checking for C compiler default output file name... " >&6; }
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2840$as_echo "$ac_file" >&6; }
6bb11ab3
L
2841ac_exeext=$ac_cv_exeext
2842
d0ac1c44 2843rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
6bb11ab3 2844ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2846$as_echo_n "checking for suffix of executables... " >&6; }
2847if { { ac_try="$ac_link"
2848case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851esac
2852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853$as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_link") 2>&5
2855 ac_status=$?
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }; then :
2858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2859# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2860# work properly (i.e., refer to `conftest.exe'), while it won't with
2861# `rm'.
2862for ac_file in conftest.exe conftest conftest.*; do
2863 test -f "$ac_file" || continue
2864 case $ac_file in
2865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2867 break;;
2868 * ) break;;
2869 esac
2870done
2871else
2872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2874as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2875See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3 2876fi
d0ac1c44 2877rm -f conftest conftest$ac_cv_exeext
6bb11ab3
L
2878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2879$as_echo "$ac_cv_exeext" >&6; }
2880
2881rm -f conftest.$ac_ext
2882EXEEXT=$ac_cv_exeext
2883ac_exeext=$EXEEXT
d0ac1c44
SM
2884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885/* end confdefs.h. */
2886#include <stdio.h>
2887int
2888main ()
2889{
2890FILE *f = fopen ("conftest.out", "w");
2891 return ferror (f) || fclose (f) != 0;
2892
2893 ;
2894 return 0;
2895}
2896_ACEOF
2897ac_clean_files="$ac_clean_files conftest.out"
2898# Check that the compiler produces executables we can run. If not, either
2899# the compiler is broken, or we cross compile.
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2901$as_echo_n "checking whether we are cross compiling... " >&6; }
2902if test "$cross_compiling" != yes; then
2903 { { ac_try="$ac_link"
2904case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907esac
2908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2909$as_echo "$ac_try_echo"; } >&5
2910 (eval "$ac_link") 2>&5
2911 ac_status=$?
2912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2913 test $ac_status = 0; }
2914 if { ac_try='./conftest$ac_cv_exeext'
2915 { { case "(($ac_try" in
2916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2917 *) ac_try_echo=$ac_try;;
2918esac
2919eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2920$as_echo "$ac_try_echo"; } >&5
2921 (eval "$ac_try") 2>&5
2922 ac_status=$?
2923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2924 test $ac_status = 0; }; }; then
2925 cross_compiling=no
2926 else
2927 if test "$cross_compiling" = maybe; then
2928 cross_compiling=yes
2929 else
2930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932as_fn_error $? "cannot run C compiled programs.
2933If you meant to cross compile, use \`--host'.
2934See \`config.log' for more details" "$LINENO" 5; }
2935 fi
2936 fi
2937fi
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2939$as_echo "$cross_compiling" >&6; }
2940
2941rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2942ac_clean_files=$ac_clean_files_save
6bb11ab3
L
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2944$as_echo_n "checking for suffix of object files... " >&6; }
d0ac1c44 2945if ${ac_cv_objext+:} false; then :
6bb11ab3
L
2946 $as_echo_n "(cached) " >&6
2947else
2948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949/* end confdefs.h. */
2950
2951int
2952main ()
2953{
2954
2955 ;
2956 return 0;
2957}
2958_ACEOF
2959rm -f conftest.o conftest.obj
2960if { { ac_try="$ac_compile"
2961case "(($ac_try" in
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2964esac
2965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2966$as_echo "$ac_try_echo"; } >&5
2967 (eval "$ac_compile") 2>&5
2968 ac_status=$?
2969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970 test $ac_status = 0; }; then :
2971 for ac_file in conftest.o conftest.obj conftest.*; do
2972 test -f "$ac_file" || continue;
2973 case $ac_file in
2974 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2975 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2976 break;;
2977 esac
2978done
2979else
2980 $as_echo "$as_me: failed program was:" >&5
2981sed 's/^/| /' conftest.$ac_ext >&5
2982
2983{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2984$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d0ac1c44
SM
2985as_fn_error $? "cannot compute suffix of object files: cannot compile
2986See \`config.log' for more details" "$LINENO" 5; }
6bb11ab3
L
2987fi
2988rm -f conftest.$ac_cv_objext conftest.$ac_ext
2989fi
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2991$as_echo "$ac_cv_objext" >&6; }
2992OBJEXT=$ac_cv_objext
2993ac_objext=$OBJEXT
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2995$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d0ac1c44 2996if ${ac_cv_c_compiler_gnu+:} false; then :
6bb11ab3
L
2997 $as_echo_n "(cached) " >&6
2998else
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000/* end confdefs.h. */
3001
3002int
3003main ()
3004{
3005#ifndef __GNUC__
3006 choke me
3007#endif
3008
3009 ;
3010 return 0;
3011}
3012_ACEOF
3013if ac_fn_c_try_compile "$LINENO"; then :
3014 ac_compiler_gnu=yes
3015else
3016 ac_compiler_gnu=no
3017fi
3018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3019ac_cv_c_compiler_gnu=$ac_compiler_gnu
3020
3021fi
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3023$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3024if test $ac_compiler_gnu = yes; then
3025 GCC=yes
3026else
3027 GCC=
3028fi
3029ac_test_CFLAGS=${CFLAGS+set}
3030ac_save_CFLAGS=$CFLAGS
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3032$as_echo_n "checking whether $CC accepts -g... " >&6; }
d0ac1c44 3033if ${ac_cv_prog_cc_g+:} false; then :
6bb11ab3
L
3034 $as_echo_n "(cached) " >&6
3035else
3036 ac_save_c_werror_flag=$ac_c_werror_flag
3037 ac_c_werror_flag=yes
3038 ac_cv_prog_cc_g=no
3039 CFLAGS="-g"
3040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3041/* end confdefs.h. */
3042
3043int
3044main ()
3045{
3046
3047 ;
3048 return 0;
3049}
3050_ACEOF
3051if ac_fn_c_try_compile "$LINENO"; then :
3052 ac_cv_prog_cc_g=yes
3053else
3054 CFLAGS=""
3055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3056/* end confdefs.h. */
3057
3058int
3059main ()
3060{
3061
3062 ;
3063 return 0;
3064}
3065_ACEOF
3066if ac_fn_c_try_compile "$LINENO"; then :
3067
3068else
3069 ac_c_werror_flag=$ac_save_c_werror_flag
3070 CFLAGS="-g"
3071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3072/* end confdefs.h. */
3073
3074int
3075main ()
3076{
3077
3078 ;
3079 return 0;
3080}
3081_ACEOF
3082if ac_fn_c_try_compile "$LINENO"; then :
3083 ac_cv_prog_cc_g=yes
3084fi
3085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3086fi
3087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3088fi
3089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3090 ac_c_werror_flag=$ac_save_c_werror_flag
3091fi
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3093$as_echo "$ac_cv_prog_cc_g" >&6; }
3094if test "$ac_test_CFLAGS" = set; then
3095 CFLAGS=$ac_save_CFLAGS
3096elif test $ac_cv_prog_cc_g = yes; then
3097 if test "$GCC" = yes; then
3098 CFLAGS="-g -O2"
3099 else
3100 CFLAGS="-g"
3101 fi
3102else
3103 if test "$GCC" = yes; then
3104 CFLAGS="-O2"
3105 else
3106 CFLAGS=
3107 fi
3108fi
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3110$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d0ac1c44 3111if ${ac_cv_prog_cc_c89+:} false; then :
6bb11ab3
L
3112 $as_echo_n "(cached) " >&6
3113else
3114 ac_cv_prog_cc_c89=no
3115ac_save_CC=$CC
3116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117/* end confdefs.h. */
3118#include <stdarg.h>
3119#include <stdio.h>
d0ac1c44 3120struct stat;
6bb11ab3
L
3121/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3122struct buf { int x; };
3123FILE * (*rcsopen) (struct buf *, struct stat *, int);
3124static char *e (p, i)
3125 char **p;
3126 int i;
3127{
3128 return p[i];
3129}
3130static char *f (char * (*g) (char **, int), char **p, ...)
3131{
3132 char *s;
3133 va_list v;
3134 va_start (v,p);
3135 s = g (p, va_arg (v,int));
3136 va_end (v);
3137 return s;
3138}
3139
3140/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3141 function prototypes and stuff, but not '\xHH' hex character constants.
3142 These don't provoke an error unfortunately, instead are silently treated
3143 as 'x'. The following induces an error, until -std is added to get
3144 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3145 array size at least. It's necessary to write '\x00'==0 to get something
3146 that's true only with -std. */
3147int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3148
3149/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3150 inside strings and character constants. */
3151#define FOO(x) 'x'
3152int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3153
3154int test (int i, double x);
3155struct s1 {int (*f) (int a);};
3156struct s2 {int (*f) (double a);};
3157int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3158int argc;
3159char **argv;
3160int
3161main ()
3162{
3163return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3164 ;
3165 return 0;
3166}
3167_ACEOF
3168for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3169 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3170do
3171 CC="$ac_save_CC $ac_arg"
3172 if ac_fn_c_try_compile "$LINENO"; then :
3173 ac_cv_prog_cc_c89=$ac_arg
3174fi
3175rm -f core conftest.err conftest.$ac_objext
3176 test "x$ac_cv_prog_cc_c89" != "xno" && break
3177done
3178rm -f conftest.$ac_ext
3179CC=$ac_save_CC
3180
3181fi
3182# AC_CACHE_VAL
3183case "x$ac_cv_prog_cc_c89" in
3184 x)
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3186$as_echo "none needed" >&6; } ;;
3187 xno)
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3189$as_echo "unsupported" >&6; } ;;
3190 *)
3191 CC="$CC $ac_cv_prog_cc_c89"
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3193$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3194esac
3195if test "x$ac_cv_prog_cc_c89" != xno; then :
3196
3197fi
3198
3199ac_ext=c
3200ac_cpp='$CPP $CPPFLAGS'
3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204
c2783492 3205
ebe9564b
MF
3206ac_ext=c
3207ac_cpp='$CPP $CPPFLAGS'
3208ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3212$as_echo_n "checking how to run the C preprocessor... " >&6; }
3213# On Suns, sometimes $CPP names a directory.
3214if test -n "$CPP" && test -d "$CPP"; then
3215 CPP=
3216fi
3217if test -z "$CPP"; then
3218 if ${ac_cv_prog_CPP+:} false; then :
3219 $as_echo_n "(cached) " >&6
3220else
3221 # Double quotes because CPP needs to be expanded
3222 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3223 do
3224 ac_preproc_ok=false
3225for ac_c_preproc_warn_flag in '' yes
3226do
3227 # Use a header file that comes with gcc, so configuring glibc
3228 # with a fresh cross-compiler works.
3229 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3230 # <limits.h> exists even on freestanding compilers.
3231 # On the NeXT, cc -E runs the code through the compiler's parser,
3232 # not just through cpp. "Syntax error" is here to catch this case.
3233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234/* end confdefs.h. */
3235#ifdef __STDC__
3236# include <limits.h>
3237#else
3238# include <assert.h>
3239#endif
3240 Syntax error
3241_ACEOF
3242if ac_fn_c_try_cpp "$LINENO"; then :
3243
3244else
3245 # Broken: fails on valid input.
3246continue
3247fi
3248rm -f conftest.err conftest.i conftest.$ac_ext
3249
3250 # OK, works on sane cases. Now check whether nonexistent headers
3251 # can be detected and how.
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253/* end confdefs.h. */
3254#include <ac_nonexistent.h>
3255_ACEOF
3256if ac_fn_c_try_cpp "$LINENO"; then :
3257 # Broken: success on invalid input.
3258continue
3259else
3260 # Passes both tests.
3261ac_preproc_ok=:
3262break
3263fi
3264rm -f conftest.err conftest.i conftest.$ac_ext
3265
3266done
3267# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3268rm -f conftest.i conftest.err conftest.$ac_ext
3269if $ac_preproc_ok; then :
3270 break
3271fi
3272
3273 done
3274 ac_cv_prog_CPP=$CPP
3275
3276fi
3277 CPP=$ac_cv_prog_CPP
3278else
3279 ac_cv_prog_CPP=$CPP
3280fi
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3282$as_echo "$CPP" >&6; }
3283ac_preproc_ok=false
3284for ac_c_preproc_warn_flag in '' yes
3285do
3286 # Use a header file that comes with gcc, so configuring glibc
3287 # with a fresh cross-compiler works.
3288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3289 # <limits.h> exists even on freestanding compilers.
3290 # On the NeXT, cc -E runs the code through the compiler's parser,
3291 # not just through cpp. "Syntax error" is here to catch this case.
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h. */
3294#ifdef __STDC__
3295# include <limits.h>
3296#else
3297# include <assert.h>
3298#endif
3299 Syntax error
3300_ACEOF
3301if ac_fn_c_try_cpp "$LINENO"; then :
3302
3303else
3304 # Broken: fails on valid input.
3305continue
3306fi
3307rm -f conftest.err conftest.i conftest.$ac_ext
3308
3309 # OK, works on sane cases. Now check whether nonexistent headers
3310 # can be detected and how.
3311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3312/* end confdefs.h. */
3313#include <ac_nonexistent.h>
3314_ACEOF
3315if ac_fn_c_try_cpp "$LINENO"; then :
3316 # Broken: success on invalid input.
3317continue
3318else
3319 # Passes both tests.
3320ac_preproc_ok=:
3321break
3322fi
3323rm -f conftest.err conftest.i conftest.$ac_ext
3324
3325done
3326# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3327rm -f conftest.i conftest.err conftest.$ac_ext
3328if $ac_preproc_ok; then :
3329
3330else
3331 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3332$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3333as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3334See \`config.log' for more details" "$LINENO" 5; }
3335fi
3336
3337ac_ext=c
3338ac_cpp='$CPP $CPPFLAGS'
3339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342
6bb11ab3
L
3343
3344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3345$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
d0ac1c44 3346if ${ac_cv_path_GREP+:} false; then :
6bb11ab3
L
3347 $as_echo_n "(cached) " >&6
3348else
3349 if test -z "$GREP"; then
3350 ac_path_GREP_found=false
3351 # Loop through the user's path and test for each of PROGNAME-LIST
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3354do
3355 IFS=$as_save_IFS
3356 test -z "$as_dir" && as_dir=.
3357 for ac_prog in grep ggrep; do
3358 for ac_exec_ext in '' $ac_executable_extensions; do
3359 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3360 as_fn_executable_p "$ac_path_GREP" || continue
6bb11ab3
L
3361# Check for GNU ac_path_GREP and select it if it is found.
3362 # Check for GNU $ac_path_GREP
3363case `"$ac_path_GREP" --version 2>&1` in
3364*GNU*)
3365 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3366*)
3367 ac_count=0
3368 $as_echo_n 0123456789 >"conftest.in"
3369 while :
3370 do
3371 cat "conftest.in" "conftest.in" >"conftest.tmp"
3372 mv "conftest.tmp" "conftest.in"
3373 cp "conftest.in" "conftest.nl"
3374 $as_echo 'GREP' >> "conftest.nl"
3375 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3377 as_fn_arith $ac_count + 1 && ac_count=$as_val
3378 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3379 # Best one so far, save it but keep looking for a better one
3380 ac_cv_path_GREP="$ac_path_GREP"
3381 ac_path_GREP_max=$ac_count
3382 fi
3383 # 10*(2^10) chars as input seems more than enough
3384 test $ac_count -gt 10 && break
3385 done
3386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3387esac
3388
3389 $ac_path_GREP_found && break 3
3390 done
3391 done
3392 done
3393IFS=$as_save_IFS
3394 if test -z "$ac_cv_path_GREP"; then
d0ac1c44 3395 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3396 fi
3397else
3398 ac_cv_path_GREP=$GREP
3399fi
3400
3401fi
3402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3403$as_echo "$ac_cv_path_GREP" >&6; }
3404 GREP="$ac_cv_path_GREP"
3405
3406
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3408$as_echo_n "checking for egrep... " >&6; }
d0ac1c44 3409if ${ac_cv_path_EGREP+:} false; then :
6bb11ab3
L
3410 $as_echo_n "(cached) " >&6
3411else
3412 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3413 then ac_cv_path_EGREP="$GREP -E"
3414 else
3415 if test -z "$EGREP"; then
3416 ac_path_EGREP_found=false
3417 # Loop through the user's path and test for each of PROGNAME-LIST
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3420do
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_prog in egrep; do
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3426 as_fn_executable_p "$ac_path_EGREP" || continue
6bb11ab3
L
3427# Check for GNU ac_path_EGREP and select it if it is found.
3428 # Check for GNU $ac_path_EGREP
3429case `"$ac_path_EGREP" --version 2>&1` in
3430*GNU*)
3431 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3432*)
3433 ac_count=0
3434 $as_echo_n 0123456789 >"conftest.in"
3435 while :
3436 do
3437 cat "conftest.in" "conftest.in" >"conftest.tmp"
3438 mv "conftest.tmp" "conftest.in"
3439 cp "conftest.in" "conftest.nl"
3440 $as_echo 'EGREP' >> "conftest.nl"
3441 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3442 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3443 as_fn_arith $ac_count + 1 && ac_count=$as_val
3444 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3445 # Best one so far, save it but keep looking for a better one
3446 ac_cv_path_EGREP="$ac_path_EGREP"
3447 ac_path_EGREP_max=$ac_count
3448 fi
3449 # 10*(2^10) chars as input seems more than enough
3450 test $ac_count -gt 10 && break
3451 done
3452 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3453esac
3454
3455 $ac_path_EGREP_found && break 3
3456 done
3457 done
3458 done
3459IFS=$as_save_IFS
3460 if test -z "$ac_cv_path_EGREP"; then
d0ac1c44 3461 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
3462 fi
3463else
3464 ac_cv_path_EGREP=$EGREP
3465fi
3466
3467 fi
3468fi
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3470$as_echo "$ac_cv_path_EGREP" >&6; }
3471 EGREP="$ac_cv_path_EGREP"
3472
3473
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3475$as_echo_n "checking for ANSI C header files... " >&6; }
d0ac1c44 3476if ${ac_cv_header_stdc+:} false; then :
6bb11ab3
L
3477 $as_echo_n "(cached) " >&6
3478else
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480/* end confdefs.h. */
3481#include <stdlib.h>
3482#include <stdarg.h>
3483#include <string.h>
3484#include <float.h>
3485
3486int
3487main ()
3488{
3489
3490 ;
3491 return 0;
3492}
3493_ACEOF
3494if ac_fn_c_try_compile "$LINENO"; then :
3495 ac_cv_header_stdc=yes
3496else
3497 ac_cv_header_stdc=no
3498fi
3499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3500
3501if test $ac_cv_header_stdc = yes; then
3502 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504/* end confdefs.h. */
3505#include <string.h>
3506
3507_ACEOF
3508if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3509 $EGREP "memchr" >/dev/null 2>&1; then :
3510
3511else
3512 ac_cv_header_stdc=no
3513fi
3514rm -f conftest*
3515
3516fi
3517
3518if test $ac_cv_header_stdc = yes; then
3519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3521/* end confdefs.h. */
3522#include <stdlib.h>
3523
3524_ACEOF
3525if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3526 $EGREP "free" >/dev/null 2>&1; then :
3527
3528else
3529 ac_cv_header_stdc=no
3530fi
3531rm -f conftest*
3532
3533fi
3534
3535if test $ac_cv_header_stdc = yes; then
3536 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3537 if test "$cross_compiling" = yes; then :
3538 :
3539else
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h. */
3542#include <ctype.h>
3543#include <stdlib.h>
3544#if ((' ' & 0x0FF) == 0x020)
3545# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3546# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3547#else
3548# define ISLOWER(c) \
3549 (('a' <= (c) && (c) <= 'i') \
3550 || ('j' <= (c) && (c) <= 'r') \
3551 || ('s' <= (c) && (c) <= 'z'))
3552# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3553#endif
3554
3555#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3556int
3557main ()
3558{
3559 int i;
3560 for (i = 0; i < 256; i++)
3561 if (XOR (islower (i), ISLOWER (i))
3562 || toupper (i) != TOUPPER (i))
3563 return 2;
3564 return 0;
3565}
3566_ACEOF
3567if ac_fn_c_try_run "$LINENO"; then :
3568
3569else
3570 ac_cv_header_stdc=no
3571fi
3572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3573 conftest.$ac_objext conftest.beam conftest.$ac_ext
3574fi
3575
3576fi
3577fi
3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3579$as_echo "$ac_cv_header_stdc" >&6; }
3580if test $ac_cv_header_stdc = yes; then
3581
3582$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3583
3584fi
3585
3586# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3587for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3588 inttypes.h stdint.h unistd.h
3589do :
3590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3591ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3592"
d0ac1c44 3593if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6bb11ab3
L
3594 cat >>confdefs.h <<_ACEOF
3595#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3596_ACEOF
3597
3598fi
3599
3600done
3601
3602
3603
3604 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
d0ac1c44 3605if test "x$ac_cv_header_minix_config_h" = xyes; then :
6bb11ab3
L
3606 MINIX=yes
3607else
3608 MINIX=
3609fi
3610
3611
3612 if test "$MINIX" = yes; then
3613
3614$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3615
3616
3617$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3618
3619
3620$as_echo "#define _MINIX 1" >>confdefs.h
3621
3622 fi
3623
3624
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3626$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
d0ac1c44 3627if ${ac_cv_safe_to_define___extensions__+:} false; then :
6bb11ab3
L
3628 $as_echo_n "(cached) " >&6
3629else
3630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631/* end confdefs.h. */
3632
d0ac1c44
SM
3633# define __EXTENSIONS__ 1
3634 $ac_includes_default
6bb11ab3
L
3635int
3636main ()
3637{
3638
3639 ;
3640 return 0;
3641}
3642_ACEOF
3643if ac_fn_c_try_compile "$LINENO"; then :
3644 ac_cv_safe_to_define___extensions__=yes
3645else
3646 ac_cv_safe_to_define___extensions__=no
3647fi
3648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649fi
3650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3651$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3652 test $ac_cv_safe_to_define___extensions__ = yes &&
3653 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3654
3655 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3656
3657 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3658
3659 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3660
3661 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3662
3663
3664test "$program_prefix" != NONE &&
3665 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3666# Use a double $ so make ignores it.
3667test "$program_suffix" != NONE &&
3668 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3669# Double any \ or $.
3670# By default was `s,x,x', remove it if useless.
3671ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3672program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3673
3674# Find a good install program. We prefer a C program (faster),
3675# so one script is as good as another. But avoid the broken or
3676# incompatible versions:
3677# SysV /etc/install, /usr/sbin/install
3678# SunOS /usr/etc/install
3679# IRIX /sbin/install
3680# AIX /bin/install
3681# AmigaOS /C/install, which installs bootblocks on floppy discs
3682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3683# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3685# OS/2's system install, which has a completely different semantic
3686# ./install, which can be erroneously created by make from ./install.sh.
3687# Reject install programs that cannot install multiple files.
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3689$as_echo_n "checking for a BSD-compatible install... " >&6; }
3690if test -z "$INSTALL"; then
d0ac1c44 3691if ${ac_cv_path_install+:} false; then :
6bb11ab3
L
3692 $as_echo_n "(cached) " >&6
3693else
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695for as_dir in $PATH
3696do
3697 IFS=$as_save_IFS
3698 test -z "$as_dir" && as_dir=.
3699 # Account for people who put trailing slashes in PATH elements.
3700case $as_dir/ in #((
3701 ./ | .// | /[cC]/* | \
3702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3704 /usr/ucb/* ) ;;
3705 *)
3706 # OSF1 and SCO ODT 3.0 have their own names for install.
3707 # Don't use installbsd from OSF since it installs stuff as root
3708 # by default.
3709 for ac_prog in ginstall scoinst install; do
3710 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 3711 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6bb11ab3
L
3712 if test $ac_prog = install &&
3713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3714 # AIX install. It has an incompatible calling convention.
3715 :
3716 elif test $ac_prog = install &&
3717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3718 # program-specific install script used by HP pwplus--don't use.
3719 :
3720 else
3721 rm -rf conftest.one conftest.two conftest.dir
3722 echo one > conftest.one
3723 echo two > conftest.two
3724 mkdir conftest.dir
3725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3726 test -s conftest.one && test -s conftest.two &&
3727 test -s conftest.dir/conftest.one &&
3728 test -s conftest.dir/conftest.two
3729 then
3730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3731 break 3
3732 fi
3733 fi
3734 fi
3735 done
3736 done
3737 ;;
3738esac
3739
3740 done
3741IFS=$as_save_IFS
3742
3743rm -rf conftest.one conftest.two conftest.dir
3744
3745fi
3746 if test "${ac_cv_path_install+set}" = set; then
3747 INSTALL=$ac_cv_path_install
3748 else
3749 # As a last resort, use the slow shell script. Don't cache a
3750 # value for INSTALL within a source directory, because that will
3751 # break other packages using the cache if that directory is
3752 # removed, or if the value is a relative name.
3753 INSTALL=$ac_install_sh
3754 fi
3755fi
3756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3757$as_echo "$INSTALL" >&6; }
3758
3759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3760# It thinks the first close brace ends the variable substitution.
3761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3762
3763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3764
3765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3766
3767rm -rf .tst 2>/dev/null
3768mkdir .tst 2>/dev/null
3769if test -d .tst; then
3770 am__leading_dot=.
3771else
3772 am__leading_dot=_
3773fi
3774rmdir .tst 2>/dev/null
3775
3776DEPDIR="${am__leading_dot}deps"
3777
3778case `pwd` in
3779 *\ * | *\ *)
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3781$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3782esac
3783
3784
3785
3786macro_version='2.2.7a'
3787macro_revision='1.3134'
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801ltmain="$ac_aux_dir/ltmain.sh"
3802
3803# Backslashify metacharacters that are still active within
3804# double-quoted strings.
3805sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3806
3807# Same as above, but do not quote variable references.
3808double_quote_subst='s/\(["`\\]\)/\\\1/g'
3809
3810# Sed substitution to delay expansion of an escaped shell variable in a
3811# double_quote_subst'ed string.
3812delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3813
3814# Sed substitution to delay expansion of an escaped single quote.
3815delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3816
3817# Sed substitution to avoid accidental globbing in evaled expressions
3818no_glob_subst='s/\*/\\\*/g'
3819
3820ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3821ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3822ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3823
3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3825$as_echo_n "checking how to print strings... " >&6; }
3826# Test print first, because it will be a builtin if present.
3827if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3828 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3829 ECHO='print -r --'
3830elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3831 ECHO='printf %s\n'
3832else
3833 # Use this function as a fallback that always works.
3834 func_fallback_echo ()
3835 {
3836 eval 'cat <<_LTECHO_EOF
3837$1
3838_LTECHO_EOF'
3839 }
3840 ECHO='func_fallback_echo'
3841fi
3842
3843# func_echo_all arg...
3844# Invoke $ECHO with all args, space-separated.
3845func_echo_all ()
3846{
3847 $ECHO ""
3848}
3849
3850case "$ECHO" in
3851 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3852$as_echo "printf" >&6; } ;;
3853 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3854$as_echo "print -r" >&6; } ;;
3855 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3856$as_echo "cat" >&6; } ;;
3857esac
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3873$as_echo_n "checking for a sed that does not truncate output... " >&6; }
d0ac1c44 3874if ${ac_cv_path_SED+:} false; then :
6bb11ab3
L
3875 $as_echo_n "(cached) " >&6
3876else
3877 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3878 for ac_i in 1 2 3 4 5 6 7; do
3879 ac_script="$ac_script$as_nl$ac_script"
3880 done
3881 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3882 { ac_script=; unset ac_script;}
3883 if test -z "$SED"; then
3884 ac_path_SED_found=false
3885 # Loop through the user's path and test for each of PROGNAME-LIST
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887for as_dir in $PATH
3888do
3889 IFS=$as_save_IFS
3890 test -z "$as_dir" && as_dir=.
3891 for ac_prog in sed gsed; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3894 as_fn_executable_p "$ac_path_SED" || continue
6bb11ab3
L
3895# Check for GNU ac_path_SED and select it if it is found.
3896 # Check for GNU $ac_path_SED
3897case `"$ac_path_SED" --version 2>&1` in
3898*GNU*)
3899 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3900*)
3901 ac_count=0
3902 $as_echo_n 0123456789 >"conftest.in"
3903 while :
3904 do
3905 cat "conftest.in" "conftest.in" >"conftest.tmp"
3906 mv "conftest.tmp" "conftest.in"
3907 cp "conftest.in" "conftest.nl"
3908 $as_echo '' >> "conftest.nl"
3909 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3911 as_fn_arith $ac_count + 1 && ac_count=$as_val
3912 if test $ac_count -gt ${ac_path_SED_max-0}; then
3913 # Best one so far, save it but keep looking for a better one
3914 ac_cv_path_SED="$ac_path_SED"
3915 ac_path_SED_max=$ac_count
3916 fi
3917 # 10*(2^10) chars as input seems more than enough
3918 test $ac_count -gt 10 && break
3919 done
3920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3921esac
3922
3923 $ac_path_SED_found && break 3
3924 done
3925 done
3926 done
3927IFS=$as_save_IFS
3928 if test -z "$ac_cv_path_SED"; then
d0ac1c44 3929 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6bb11ab3
L
3930 fi
3931else
3932 ac_cv_path_SED=$SED
3933fi
3934
3935fi
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3937$as_echo "$ac_cv_path_SED" >&6; }
3938 SED="$ac_cv_path_SED"
3939 rm -f conftest.sed
3940
3941test -z "$SED" && SED=sed
3942Xsed="$SED -e 1s/^X//"
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3955$as_echo_n "checking for fgrep... " >&6; }
d0ac1c44 3956if ${ac_cv_path_FGREP+:} false; then :
6bb11ab3
L
3957 $as_echo_n "(cached) " >&6
3958else
3959 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3960 then ac_cv_path_FGREP="$GREP -F"
3961 else
3962 if test -z "$FGREP"; then
3963 ac_path_FGREP_found=false
3964 # Loop through the user's path and test for each of PROGNAME-LIST
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3967do
3968 IFS=$as_save_IFS
3969 test -z "$as_dir" && as_dir=.
3970 for ac_prog in fgrep; do
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
d0ac1c44 3973 as_fn_executable_p "$ac_path_FGREP" || continue
6bb11ab3
L
3974# Check for GNU ac_path_FGREP and select it if it is found.
3975 # Check for GNU $ac_path_FGREP
3976case `"$ac_path_FGREP" --version 2>&1` in
3977*GNU*)
3978 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3979*)
3980 ac_count=0
3981 $as_echo_n 0123456789 >"conftest.in"
3982 while :
3983 do
3984 cat "conftest.in" "conftest.in" >"conftest.tmp"
3985 mv "conftest.tmp" "conftest.in"
3986 cp "conftest.in" "conftest.nl"
3987 $as_echo 'FGREP' >> "conftest.nl"
3988 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3990 as_fn_arith $ac_count + 1 && ac_count=$as_val
3991 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3992 # Best one so far, save it but keep looking for a better one
3993 ac_cv_path_FGREP="$ac_path_FGREP"
3994 ac_path_FGREP_max=$ac_count
3995 fi
3996 # 10*(2^10) chars as input seems more than enough
3997 test $ac_count -gt 10 && break
3998 done
3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4000esac
4001
4002 $ac_path_FGREP_found && break 3
4003 done
4004 done
4005 done
4006IFS=$as_save_IFS
4007 if test -z "$ac_cv_path_FGREP"; then
d0ac1c44 4008 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6bb11ab3
L
4009 fi
4010else
4011 ac_cv_path_FGREP=$FGREP
4012fi
4013
4014 fi
4015fi
4016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4017$as_echo "$ac_cv_path_FGREP" >&6; }
4018 FGREP="$ac_cv_path_FGREP"
4019
4020
4021test -z "$GREP" && GREP=grep
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041# Check whether --with-gnu-ld was given.
4042if test "${with_gnu_ld+set}" = set; then :
4043 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4044else
4045 with_gnu_ld=no
4046fi
4047
4048ac_prog=ld
4049if test "$GCC" = yes; then
4050 # Check if gcc -print-prog-name=ld gives a path.
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4052$as_echo_n "checking for ld used by $CC... " >&6; }
4053 case $host in
4054 *-*-mingw*)
4055 # gcc leaves a trailing carriage return which upsets mingw
4056 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4057 *)
4058 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4059 esac
4060 case $ac_prog in
4061 # Accept absolute paths.
4062 [\\/]* | ?:[\\/]*)
4063 re_direlt='/[^/][^/]*/\.\./'
4064 # Canonicalize the pathname of ld
4065 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4066 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4067 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4068 done
4069 test -z "$LD" && LD="$ac_prog"
4070 ;;
4071 "")
4072 # If it fails, then pretend we aren't using GCC.
4073 ac_prog=ld
4074 ;;
4075 *)
4076 # If it is relative, then search for the first ld in PATH.
4077 with_gnu_ld=unknown
4078 ;;
4079 esac
4080elif test "$with_gnu_ld" = yes; then
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4082$as_echo_n "checking for GNU ld... " >&6; }
4083else
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4085$as_echo_n "checking for non-GNU ld... " >&6; }
4086fi
d0ac1c44 4087if ${lt_cv_path_LD+:} false; then :
6bb11ab3
L
4088 $as_echo_n "(cached) " >&6
4089else
4090 if test -z "$LD"; then
4091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4092 for ac_dir in $PATH; do
4093 IFS="$lt_save_ifs"
4094 test -z "$ac_dir" && ac_dir=.
4095 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4096 lt_cv_path_LD="$ac_dir/$ac_prog"
4097 # Check to see if the program is GNU ld. I'd rather use --version,
4098 # but apparently some variants of GNU ld only accept -v.
4099 # Break only if it was the GNU/non-GNU ld that we prefer.
4100 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4101 *GNU* | *'with BFD'*)
4102 test "$with_gnu_ld" != no && break
4103 ;;
4104 *)
4105 test "$with_gnu_ld" != yes && break
4106 ;;
4107 esac
4108 fi
4109 done
4110 IFS="$lt_save_ifs"
4111else
4112 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4113fi
4114fi
4115
4116LD="$lt_cv_path_LD"
4117if test -n "$LD"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4119$as_echo "$LD" >&6; }
4120else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122$as_echo "no" >&6; }
4123fi
d0ac1c44 4124test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6bb11ab3
L
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4126$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
d0ac1c44 4127if ${lt_cv_prog_gnu_ld+:} false; then :
6bb11ab3
L
4128 $as_echo_n "(cached) " >&6
4129else
4130 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4131case `$LD -v 2>&1 </dev/null` in
4132*GNU* | *'with BFD'*)
4133 lt_cv_prog_gnu_ld=yes
4134 ;;
4135*)
4136 lt_cv_prog_gnu_ld=no
4137 ;;
4138esac
4139fi
4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4141$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4142with_gnu_ld=$lt_cv_prog_gnu_ld
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4153$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
d0ac1c44 4154if ${lt_cv_path_NM+:} false; then :
6bb11ab3
L
4155 $as_echo_n "(cached) " >&6
4156else
4157 if test -n "$NM"; then
4158 # Let the user override the test.
4159 lt_cv_path_NM="$NM"
4160else
4161 lt_nm_to_check="${ac_tool_prefix}nm"
4162 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4163 lt_nm_to_check="$lt_nm_to_check nm"
4164 fi
4165 for lt_tmp_nm in $lt_nm_to_check; do
4166 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4167 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4168 IFS="$lt_save_ifs"
4169 test -z "$ac_dir" && ac_dir=.
4170 tmp_nm="$ac_dir/$lt_tmp_nm"
4171 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4172 # Check to see if the nm accepts a BSD-compat flag.
4173 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4174 # nm: unknown option "B" ignored
4175 # Tru64's nm complains that /dev/null is an invalid object file
4176 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4177 */dev/null* | *'Invalid file or object type'*)
4178 lt_cv_path_NM="$tmp_nm -B"
4179 break
4180 ;;
4181 *)
4182 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4183 */dev/null*)
4184 lt_cv_path_NM="$tmp_nm -p"
4185 break
4186 ;;
4187 *)
4188 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4189 continue # so that we can try to find one that supports BSD flags
4190 ;;
4191 esac
4192 ;;
4193 esac
4194 fi
4195 done
4196 IFS="$lt_save_ifs"
4197 done
4198 : ${lt_cv_path_NM=no}
4199fi
4200fi
4201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4202$as_echo "$lt_cv_path_NM" >&6; }
4203if test "$lt_cv_path_NM" != "no"; then
4204 NM="$lt_cv_path_NM"
4205else
4206 # Didn't find any BSD compatible name lister, look for dumpbin.
4207 if test -n "$DUMPBIN"; then :
4208 # Let the user override the test.
4209 else
4210 if test -n "$ac_tool_prefix"; then
4211 for ac_prog in dumpbin "link -dump"
4212 do
4213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4214set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4217if ${ac_cv_prog_DUMPBIN+:} false; then :
6bb11ab3
L
4218 $as_echo_n "(cached) " >&6
4219else
4220 if test -n "$DUMPBIN"; then
4221 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4222else
4223as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224for as_dir in $PATH
4225do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4230 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234done
4235 done
4236IFS=$as_save_IFS
4237
4238fi
4239fi
4240DUMPBIN=$ac_cv_prog_DUMPBIN
4241if test -n "$DUMPBIN"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4243$as_echo "$DUMPBIN" >&6; }
4244else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246$as_echo "no" >&6; }
4247fi
4248
4249
4250 test -n "$DUMPBIN" && break
4251 done
4252fi
4253if test -z "$DUMPBIN"; then
4254 ac_ct_DUMPBIN=$DUMPBIN
4255 for ac_prog in dumpbin "link -dump"
4256do
4257 # Extract the first word of "$ac_prog", so it can be a program name with args.
4258set dummy $ac_prog; ac_word=$2
4259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4261if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6bb11ab3
L
4262 $as_echo_n "(cached) " >&6
4263else
4264 if test -n "$ac_ct_DUMPBIN"; then
4265 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4266else
4267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268for as_dir in $PATH
4269do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4274 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 break 2
4277 fi
4278done
4279 done
4280IFS=$as_save_IFS
4281
4282fi
4283fi
4284ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4285if test -n "$ac_ct_DUMPBIN"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4287$as_echo "$ac_ct_DUMPBIN" >&6; }
4288else
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290$as_echo "no" >&6; }
4291fi
4292
4293
4294 test -n "$ac_ct_DUMPBIN" && break
4295done
4296
4297 if test "x$ac_ct_DUMPBIN" = x; then
4298 DUMPBIN=":"
4299 else
4300 case $cross_compiling:$ac_tool_warned in
4301yes:)
4302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4304ac_tool_warned=yes ;;
4305esac
4306 DUMPBIN=$ac_ct_DUMPBIN
4307 fi
4308fi
4309
4310 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4311 *COFF*)
4312 DUMPBIN="$DUMPBIN -symbols"
4313 ;;
4314 *)
4315 DUMPBIN=:
4316 ;;
4317 esac
4318 fi
4319
4320 if test "$DUMPBIN" != ":"; then
4321 NM="$DUMPBIN"
4322 fi
4323fi
4324test -z "$NM" && NM=nm
4325
4326
4327
4328
4329
4330
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4332$as_echo_n "checking the name lister ($NM) interface... " >&6; }
d0ac1c44 4333if ${lt_cv_nm_interface+:} false; then :
6bb11ab3
L
4334 $as_echo_n "(cached) " >&6
4335else
4336 lt_cv_nm_interface="BSD nm"
4337 echo "int some_variable = 0;" > conftest.$ac_ext
4338 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4339 (eval "$ac_compile" 2>conftest.err)
4340 cat conftest.err >&5
4341 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4342 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4343 cat conftest.err >&5
4344 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4345 cat conftest.out >&5
4346 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4347 lt_cv_nm_interface="MS dumpbin"
4348 fi
4349 rm -f conftest*
4350fi
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4352$as_echo "$lt_cv_nm_interface" >&6; }
4353
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4355$as_echo_n "checking whether ln -s works... " >&6; }
4356LN_S=$as_ln_s
4357if test "$LN_S" = "ln -s"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4359$as_echo "yes" >&6; }
4360else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4362$as_echo "no, using $LN_S" >&6; }
4363fi
4364
4365# find the maximum length of command line arguments
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4367$as_echo_n "checking the maximum length of command line arguments... " >&6; }
d0ac1c44 4368if ${lt_cv_sys_max_cmd_len+:} false; then :
6bb11ab3
L
4369 $as_echo_n "(cached) " >&6
4370else
4371 i=0
4372 teststring="ABCD"
4373
4374 case $build_os in
4375 msdosdjgpp*)
4376 # On DJGPP, this test can blow up pretty badly due to problems in libc
4377 # (any single argument exceeding 2000 bytes causes a buffer overrun
4378 # during glob expansion). Even if it were fixed, the result of this
4379 # check would be larger than it should be.
4380 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4381 ;;
4382
4383 gnu*)
4384 # Under GNU Hurd, this test is not required because there is
4385 # no limit to the length of command line arguments.
4386 # Libtool will interpret -1 as no limit whatsoever
4387 lt_cv_sys_max_cmd_len=-1;
4388 ;;
4389
4390 cygwin* | mingw* | cegcc*)
4391 # On Win9x/ME, this test blows up -- it succeeds, but takes
4392 # about 5 minutes as the teststring grows exponentially.
4393 # Worse, since 9x/ME are not pre-emptively multitasking,
4394 # you end up with a "frozen" computer, even though with patience
4395 # the test eventually succeeds (with a max line length of 256k).
4396 # Instead, let's just punt: use the minimum linelength reported by
4397 # all of the supported platforms: 8192 (on NT/2K/XP).
4398 lt_cv_sys_max_cmd_len=8192;
4399 ;;
4400
4401 mint*)
4402 # On MiNT this can take a long time and run out of memory.
4403 lt_cv_sys_max_cmd_len=8192;
4404 ;;
4405
4406 amigaos*)
4407 # On AmigaOS with pdksh, this test takes hours, literally.
4408 # So we just punt and use a minimum line length of 8192.
4409 lt_cv_sys_max_cmd_len=8192;
4410 ;;
4411
4412 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4413 # This has been around since 386BSD, at least. Likely further.
4414 if test -x /sbin/sysctl; then
4415 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4416 elif test -x /usr/sbin/sysctl; then
4417 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4418 else
4419 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4420 fi
4421 # And add a safety zone
4422 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4423 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4424 ;;
4425
4426 interix*)
4427 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4428 lt_cv_sys_max_cmd_len=196608
4429 ;;
4430
4431 osf*)
4432 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4433 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4434 # nice to cause kernel panics so lets avoid the loop below.
4435 # First set a reasonable default.
4436 lt_cv_sys_max_cmd_len=16384
4437 #
4438 if test -x /sbin/sysconfig; then
4439 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4440 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4441 esac
4442 fi
4443 ;;
4444 sco3.2v5*)
4445 lt_cv_sys_max_cmd_len=102400
4446 ;;
4447 sysv5* | sco5v6* | sysv4.2uw2*)
4448 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4449 if test -n "$kargmax"; then
4450 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4451 else
4452 lt_cv_sys_max_cmd_len=32768
4453 fi
4454 ;;
4455 *)
4456 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4457 if test -n "$lt_cv_sys_max_cmd_len"; then
4458 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4459 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4460 else
4461 # Make teststring a little bigger before we do anything with it.
4462 # a 1K string should be a reasonable start.
4463 for i in 1 2 3 4 5 6 7 8 ; do
4464 teststring=$teststring$teststring
4465 done
4466 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4467 # If test is not a shell built-in, we'll probably end up computing a
4468 # maximum length that is only half of the actual maximum length, but
4469 # we can't tell.
4470 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4471 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4472 test $i != 17 # 1/2 MB should be enough
4473 do
4474 i=`expr $i + 1`
4475 teststring=$teststring$teststring
4476 done
4477 # Only check the string length outside the loop.
4478 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4479 teststring=
4480 # Add a significant safety factor because C++ compilers can tack on
4481 # massive amounts of additional arguments before passing them to the
4482 # linker. It appears as though 1/2 is a usable value.
4483 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4484 fi
4485 ;;
4486 esac
4487
4488fi
4489
4490if test -n $lt_cv_sys_max_cmd_len ; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4492$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4493else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4495$as_echo "none" >&6; }
4496fi
4497max_cmd_len=$lt_cv_sys_max_cmd_len
4498
4499
4500
4501
4502
4503
4504: ${CP="cp -f"}
4505: ${MV="mv -f"}
4506: ${RM="rm -f"}
4507
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4509$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4510# Try some XSI features
4511xsi_shell=no
4512( _lt_dummy="a/b/c"
4513 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4514 = c,a/b,, \
4515 && eval 'test $(( 1 + 1 )) -eq 2 \
4516 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4517 && xsi_shell=yes
4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4519$as_echo "$xsi_shell" >&6; }
4520
4521
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4523$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4524lt_shell_append=no
4525( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4526 >/dev/null 2>&1 \
4527 && lt_shell_append=yes
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4529$as_echo "$lt_shell_append" >&6; }
4530
4531
4532if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4533 lt_unset=unset
4534else
4535 lt_unset=false
4536fi
4537
4538
4539
4540
4541
4542# test EBCDIC or ASCII
4543case `echo X|tr X '\101'` in
4544 A) # ASCII based system
4545 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4546 lt_SP2NL='tr \040 \012'
4547 lt_NL2SP='tr \015\012 \040\040'
4548 ;;
4549 *) # EBCDIC based system
4550 lt_SP2NL='tr \100 \n'
4551 lt_NL2SP='tr \r\n \100\100'
4552 ;;
4553esac
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4564$as_echo_n "checking for $LD option to reload object files... " >&6; }
d0ac1c44 4565if ${lt_cv_ld_reload_flag+:} false; then :
6bb11ab3
L
4566 $as_echo_n "(cached) " >&6
4567else
4568 lt_cv_ld_reload_flag='-r'
4569fi
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4571$as_echo "$lt_cv_ld_reload_flag" >&6; }
4572reload_flag=$lt_cv_ld_reload_flag
4573case $reload_flag in
4574"" | " "*) ;;
4575*) reload_flag=" $reload_flag" ;;
4576esac
4577reload_cmds='$LD$reload_flag -o $output$reload_objs'
4578case $host_os in
4579 darwin*)
4580 if test "$GCC" = yes; then
4581 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4582 else
4583 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4584 fi
4585 ;;
4586esac
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4598set dummy ${ac_tool_prefix}objdump; ac_word=$2
4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4601if ${ac_cv_prog_OBJDUMP+:} false; then :
6bb11ab3
L
4602 $as_echo_n "(cached) " >&6
4603else
4604 if test -n "$OBJDUMP"; then
4605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4606else
4607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608for as_dir in $PATH
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4614 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 break 2
4617 fi
4618done
4619 done
4620IFS=$as_save_IFS
4621
4622fi
4623fi
4624OBJDUMP=$ac_cv_prog_OBJDUMP
4625if test -n "$OBJDUMP"; then
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4627$as_echo "$OBJDUMP" >&6; }
4628else
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630$as_echo "no" >&6; }
4631fi
4632
4633
4634fi
4635if test -z "$ac_cv_prog_OBJDUMP"; then
4636 ac_ct_OBJDUMP=$OBJDUMP
4637 # Extract the first word of "objdump", so it can be a program name with args.
4638set dummy objdump; ac_word=$2
4639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4641if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6bb11ab3
L
4642 $as_echo_n "(cached) " >&6
4643else
4644 if test -n "$ac_ct_OBJDUMP"; then
4645 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4646else
4647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648for as_dir in $PATH
4649do
4650 IFS=$as_save_IFS
4651 test -z "$as_dir" && as_dir=.
4652 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4654 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 break 2
4657 fi
4658done
4659 done
4660IFS=$as_save_IFS
4661
4662fi
4663fi
4664ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4665if test -n "$ac_ct_OBJDUMP"; then
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4667$as_echo "$ac_ct_OBJDUMP" >&6; }
4668else
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4670$as_echo "no" >&6; }
4671fi
4672
4673 if test "x$ac_ct_OBJDUMP" = x; then
4674 OBJDUMP="false"
4675 else
4676 case $cross_compiling:$ac_tool_warned in
4677yes:)
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4680ac_tool_warned=yes ;;
4681esac
4682 OBJDUMP=$ac_ct_OBJDUMP
4683 fi
4684else
4685 OBJDUMP="$ac_cv_prog_OBJDUMP"
4686fi
4687
4688test -z "$OBJDUMP" && OBJDUMP=objdump
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4699$as_echo_n "checking how to recognize dependent libraries... " >&6; }
d0ac1c44 4700if ${lt_cv_deplibs_check_method+:} false; then :
6bb11ab3
L
4701 $as_echo_n "(cached) " >&6
4702else
4703 lt_cv_file_magic_cmd='$MAGIC_CMD'
4704lt_cv_file_magic_test_file=
4705lt_cv_deplibs_check_method='unknown'
4706# Need to set the preceding variable on all platforms that support
4707# interlibrary dependencies.
4708# 'none' -- dependencies not supported.
4709# `unknown' -- same as none, but documents that we really don't know.
4710# 'pass_all' -- all dependencies passed with no checks.
4711# 'test_compile' -- check by making test program.
4712# 'file_magic [[regex]]' -- check by looking for files in library path
4713# which responds to the $file_magic_cmd with a given extended regex.
4714# If you have `file' or equivalent on your system and you're not sure
4715# whether `pass_all' will *always* work, you probably want this one.
4716
4717case $host_os in
4718aix[4-9]*)
4719 lt_cv_deplibs_check_method=pass_all
4720 ;;
4721
4722beos*)
4723 lt_cv_deplibs_check_method=pass_all
4724 ;;
4725
4726bsdi[45]*)
4727 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4728 lt_cv_file_magic_cmd='/usr/bin/file -L'
4729 lt_cv_file_magic_test_file=/shlib/libc.so
4730 ;;
4731
4732cygwin*)
4733 # func_win32_libid is a shell function defined in ltmain.sh
4734 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4735 lt_cv_file_magic_cmd='func_win32_libid'
4736 ;;
4737
4738mingw* | pw32*)
4739 # Base MSYS/MinGW do not provide the 'file' command needed by
4740 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4741 # unless we find 'file', for example because we are cross-compiling.
4742 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4743 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4744 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4745 lt_cv_file_magic_cmd='func_win32_libid'
4746 else
4747 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4748 lt_cv_file_magic_cmd='$OBJDUMP -f'
4749 fi
4750 ;;
4751
4752cegcc*)
4753 # use the weaker test based on 'objdump'. See mingw*.
4754 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4755 lt_cv_file_magic_cmd='$OBJDUMP -f'
4756 ;;
4757
4758darwin* | rhapsody*)
4759 lt_cv_deplibs_check_method=pass_all
4760 ;;
4761
4762freebsd* | dragonfly*)
4763 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4764 case $host_cpu in
4765 i*86 )
4766 # Not sure whether the presence of OpenBSD here was a mistake.
4767 # Let's accept both of them until this is cleared up.
4768 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4769 lt_cv_file_magic_cmd=/usr/bin/file
4770 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4771 ;;
4772 esac
4773 else
4774 lt_cv_deplibs_check_method=pass_all
4775 fi
4776 ;;
4777
4778gnu*)
4779 lt_cv_deplibs_check_method=pass_all
4780 ;;
4781
4782haiku*)
4783 lt_cv_deplibs_check_method=pass_all
4784 ;;
4785
4786hpux10.20* | hpux11*)
4787 lt_cv_file_magic_cmd=/usr/bin/file
4788 case $host_cpu in
4789 ia64*)
4790 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4791 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4792 ;;
4793 hppa*64*)
4794 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]'
4795 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4796 ;;
4797 *)
4798 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4799 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4800 ;;
4801 esac
4802 ;;
4803
4804interix[3-9]*)
4805 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4806 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4807 ;;
4808
4809irix5* | irix6* | nonstopux*)
4810 case $LD in
4811 *-32|*"-32 ") libmagic=32-bit;;
4812 *-n32|*"-n32 ") libmagic=N32;;
4813 *-64|*"-64 ") libmagic=64-bit;;
4814 *) libmagic=never-match;;
4815 esac
4816 lt_cv_deplibs_check_method=pass_all
4817 ;;
4818
4819# This must be Linux ELF.
4820linux* | k*bsd*-gnu | kopensolaris*-gnu)
4821 lt_cv_deplibs_check_method=pass_all
4822 ;;
4823
4824netbsd*)
4825 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4826 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4827 else
4828 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4829 fi
4830 ;;
4831
4832newos6*)
4833 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4834 lt_cv_file_magic_cmd=/usr/bin/file
4835 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4836 ;;
4837
4838*nto* | *qnx*)
4839 lt_cv_deplibs_check_method=pass_all
4840 ;;
4841
4842openbsd*)
4843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4844 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4845 else
4846 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4847 fi
4848 ;;
4849
4850osf3* | osf4* | osf5*)
4851 lt_cv_deplibs_check_method=pass_all
4852 ;;
4853
4854rdos*)
4855 lt_cv_deplibs_check_method=pass_all
4856 ;;
4857
4858solaris*)
4859 lt_cv_deplibs_check_method=pass_all
4860 ;;
4861
4862sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4863 lt_cv_deplibs_check_method=pass_all
4864 ;;
4865
4866sysv4 | sysv4.3*)
4867 case $host_vendor in
4868 motorola)
4869 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]'
4870 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4871 ;;
4872 ncr)
4873 lt_cv_deplibs_check_method=pass_all
4874 ;;
4875 sequent)
4876 lt_cv_file_magic_cmd='/bin/file'
4877 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4878 ;;
4879 sni)
4880 lt_cv_file_magic_cmd='/bin/file'
4881 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4882 lt_cv_file_magic_test_file=/lib/libc.so
4883 ;;
4884 siemens)
4885 lt_cv_deplibs_check_method=pass_all
4886 ;;
4887 pc)
4888 lt_cv_deplibs_check_method=pass_all
4889 ;;
4890 esac
4891 ;;
4892
4893tpf*)
4894 lt_cv_deplibs_check_method=pass_all
4895 ;;
4896esac
4897
4898fi
4899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4900$as_echo "$lt_cv_deplibs_check_method" >&6; }
4901file_magic_cmd=$lt_cv_file_magic_cmd
4902deplibs_check_method=$lt_cv_deplibs_check_method
4903test -z "$deplibs_check_method" && deplibs_check_method=unknown
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
68ed2854
MF
4916plugin_option=
4917plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
4918for plugin in $plugin_names; do
4919 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
4920 if test x$plugin_so = x$plugin; then
4921 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
4922 fi
4923 if test x$plugin_so != x$plugin; then
4924 plugin_option="--plugin $plugin_so"
4925 break
4926 fi
4927done
4928
6bb11ab3
L
4929if test -n "$ac_tool_prefix"; then
4930 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4931set dummy ${ac_tool_prefix}ar; ac_word=$2
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4934if ${ac_cv_prog_AR+:} false; then :
6bb11ab3
L
4935 $as_echo_n "(cached) " >&6
4936else
4937 if test -n "$AR"; then
4938 ac_cv_prog_AR="$AR" # Let the user override the test.
4939else
4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH
4942do
4943 IFS=$as_save_IFS
4944 test -z "$as_dir" && as_dir=.
4945 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4947 ac_cv_prog_AR="${ac_tool_prefix}ar"
4948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4949 break 2
4950 fi
4951done
4952 done
4953IFS=$as_save_IFS
4954
4955fi
4956fi
4957AR=$ac_cv_prog_AR
4958if test -n "$AR"; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4960$as_echo "$AR" >&6; }
4961else
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963$as_echo "no" >&6; }
4964fi
4965
4966
4967fi
4968if test -z "$ac_cv_prog_AR"; then
4969 ac_ct_AR=$AR
4970 # Extract the first word of "ar", so it can be a program name with args.
4971set dummy ar; ac_word=$2
4972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4973$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 4974if ${ac_cv_prog_ac_ct_AR+:} false; then :
6bb11ab3
L
4975 $as_echo_n "(cached) " >&6
4976else
4977 if test -n "$ac_ct_AR"; then
4978 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4979else
4980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981for as_dir in $PATH
4982do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
4985 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 4986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
4987 ac_cv_prog_ac_ct_AR="ar"
4988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4989 break 2
4990 fi
4991done
4992 done
4993IFS=$as_save_IFS
4994
4995fi
4996fi
4997ac_ct_AR=$ac_cv_prog_ac_ct_AR
4998if test -n "$ac_ct_AR"; then
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5000$as_echo "$ac_ct_AR" >&6; }
5001else
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003$as_echo "no" >&6; }
5004fi
5005
5006 if test "x$ac_ct_AR" = x; then
5007 AR="false"
5008 else
5009 case $cross_compiling:$ac_tool_warned in
5010yes:)
5011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5013ac_tool_warned=yes ;;
5014esac
5015 AR=$ac_ct_AR
5016 fi
5017else
5018 AR="$ac_cv_prog_AR"
5019fi
5020
5021test -z "$AR" && AR=ar
68ed2854
MF
5022if test -n "$plugin_option"; then
5023 if $AR --help 2>&1 | grep -q "\--plugin"; then
aa09469f
MF
5024 touch conftest.c
5025 $AR $plugin_option rc conftest.a conftest.c
5026 if test "$?" != 0; then
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
5028$as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
5029 else
5030 AR="$AR $plugin_option"
5031 fi
5032 rm -f conftest.*
68ed2854
MF
5033 fi
5034fi
6bb11ab3
L
5035test -z "$AR_FLAGS" && AR_FLAGS=cru
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047if test -n "$ac_tool_prefix"; then
5048 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5049set dummy ${ac_tool_prefix}strip; ac_word=$2
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5052if ${ac_cv_prog_STRIP+:} false; then :
6bb11ab3
L
5053 $as_echo_n "(cached) " >&6
5054else
5055 if test -n "$STRIP"; then
5056 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5057else
5058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059for as_dir in $PATH
5060do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5065 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5068 fi
5069done
5070 done
5071IFS=$as_save_IFS
5072
5073fi
5074fi
5075STRIP=$ac_cv_prog_STRIP
5076if test -n "$STRIP"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5078$as_echo "$STRIP" >&6; }
5079else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081$as_echo "no" >&6; }
5082fi
5083
5084
5085fi
5086if test -z "$ac_cv_prog_STRIP"; then
5087 ac_ct_STRIP=$STRIP
5088 # Extract the first word of "strip", so it can be a program name with args.
5089set dummy strip; ac_word=$2
5090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5091$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5092if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6bb11ab3
L
5093 $as_echo_n "(cached) " >&6
5094else
5095 if test -n "$ac_ct_STRIP"; then
5096 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5097else
5098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5099for as_dir in $PATH
5100do
5101 IFS=$as_save_IFS
5102 test -z "$as_dir" && as_dir=.
5103 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5105 ac_cv_prog_ac_ct_STRIP="strip"
5106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 break 2
5108 fi
5109done
5110 done
5111IFS=$as_save_IFS
5112
5113fi
5114fi
5115ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5116if test -n "$ac_ct_STRIP"; then
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5118$as_echo "$ac_ct_STRIP" >&6; }
5119else
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5121$as_echo "no" >&6; }
5122fi
5123
5124 if test "x$ac_ct_STRIP" = x; then
5125 STRIP=":"
5126 else
5127 case $cross_compiling:$ac_tool_warned in
5128yes:)
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5131ac_tool_warned=yes ;;
5132esac
5133 STRIP=$ac_ct_STRIP
5134 fi
5135else
5136 STRIP="$ac_cv_prog_STRIP"
5137fi
5138
5139test -z "$STRIP" && STRIP=:
5140
5141
5142
5143
5144
5145
5146if test -n "$ac_tool_prefix"; then
5147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5148set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5151if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
5152 $as_echo_n "(cached) " >&6
5153else
5154 if test -n "$RANLIB"; then
5155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5156else
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5167 fi
5168done
5169 done
5170IFS=$as_save_IFS
5171
5172fi
5173fi
5174RANLIB=$ac_cv_prog_RANLIB
5175if test -n "$RANLIB"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5177$as_echo "$RANLIB" >&6; }
5178else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180$as_echo "no" >&6; }
5181fi
5182
5183
5184fi
5185if test -z "$ac_cv_prog_RANLIB"; then
5186 ac_ct_RANLIB=$RANLIB
5187 # Extract the first word of "ranlib", so it can be a program name with args.
5188set dummy ranlib; ac_word=$2
5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5190$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5191if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
5192 $as_echo_n "(cached) " >&6
5193else
5194 if test -n "$ac_ct_RANLIB"; then
5195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5196else
5197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198for as_dir in $PATH
5199do
5200 IFS=$as_save_IFS
5201 test -z "$as_dir" && as_dir=.
5202 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5204 ac_cv_prog_ac_ct_RANLIB="ranlib"
5205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206 break 2
5207 fi
5208done
5209 done
5210IFS=$as_save_IFS
5211
5212fi
5213fi
5214ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5215if test -n "$ac_ct_RANLIB"; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5217$as_echo "$ac_ct_RANLIB" >&6; }
5218else
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220$as_echo "no" >&6; }
5221fi
5222
5223 if test "x$ac_ct_RANLIB" = x; then
5224 RANLIB=":"
5225 else
5226 case $cross_compiling:$ac_tool_warned in
5227yes:)
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230ac_tool_warned=yes ;;
5231esac
5232 RANLIB=$ac_ct_RANLIB
5233 fi
5234else
5235 RANLIB="$ac_cv_prog_RANLIB"
5236fi
5237
5238test -z "$RANLIB" && RANLIB=:
68ed2854
MF
5239if test -n "$plugin_option" && test "$RANLIB" != ":"; then
5240 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
5241 RANLIB="$RANLIB $plugin_option"
5242 fi
5243fi
6bb11ab3
L
5244
5245
5246
5247
5248
5249
5250# Determine commands to create old-style static archives.
5251old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5252old_postinstall_cmds='chmod 644 $oldlib'
5253old_postuninstall_cmds=
5254
5255if test -n "$RANLIB"; then
5256 case $host_os in
5257 openbsd*)
5258 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5259 ;;
5260 *)
5261 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5262 ;;
5263 esac
5264 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5265fi
5266
5267case $host_os in
5268 darwin*)
5269 lock_old_archive_extraction=yes ;;
5270 *)
5271 lock_old_archive_extraction=no ;;
5272esac
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294for ac_prog in gawk mawk nawk awk
5295do
5296 # Extract the first word of "$ac_prog", so it can be a program name with args.
5297set dummy $ac_prog; ac_word=$2
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5299$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5300if ${ac_cv_prog_AWK+:} false; then :
6bb11ab3
L
5301 $as_echo_n "(cached) " >&6
5302else
5303 if test -n "$AWK"; then
5304 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5305else
5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309 IFS=$as_save_IFS
5310 test -z "$as_dir" && as_dir=.
5311 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5313 ac_cv_prog_AWK="$ac_prog"
5314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 break 2
5316 fi
5317done
5318 done
5319IFS=$as_save_IFS
5320
5321fi
5322fi
5323AWK=$ac_cv_prog_AWK
5324if test -n "$AWK"; then
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5326$as_echo "$AWK" >&6; }
5327else
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329$as_echo "no" >&6; }
5330fi
5331
5332
5333 test -n "$AWK" && break
5334done
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354# If no C compiler was specified, use CC.
5355LTCC=${LTCC-"$CC"}
5356
5357# If no C compiler flags were specified, use CFLAGS.
5358LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5359
5360# Allow CC to be a program name with arguments.
5361compiler=$CC
5362
5363
5364# Check for command to grab the raw symbol name followed by C symbol from nm.
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5366$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
d0ac1c44 5367if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6bb11ab3
L
5368 $as_echo_n "(cached) " >&6
5369else
5370
5371# These are sane defaults that work on at least a few old systems.
5372# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5373
5374# Character class describing NM global symbol codes.
5375symcode='[BCDEGRST]'
5376
5377# Regexp to match symbols that can be accessed directly from C.
5378sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5379
5380# Define system-specific variables.
5381case $host_os in
5382aix*)
5383 symcode='[BCDT]'
5384 ;;
5385cygwin* | mingw* | pw32* | cegcc*)
5386 symcode='[ABCDGISTW]'
5387 ;;
5388hpux*)
5389 if test "$host_cpu" = ia64; then
5390 symcode='[ABCDEGRST]'
5391 fi
5392 ;;
5393irix* | nonstopux*)
5394 symcode='[BCDEGRST]'
5395 ;;
5396osf*)
5397 symcode='[BCDEGQRST]'
5398 ;;
5399solaris*)
5400 symcode='[BDRT]'
5401 ;;
5402sco3.2v5*)
5403 symcode='[DT]'
5404 ;;
5405sysv4.2uw2*)
5406 symcode='[DT]'
5407 ;;
5408sysv5* | sco5v6* | unixware* | OpenUNIX*)
5409 symcode='[ABDT]'
5410 ;;
5411sysv4)
5412 symcode='[DFNSTU]'
5413 ;;
5414esac
5415
5416# If we're using GNU nm, then use its standard symbol codes.
5417case `$NM -V 2>&1` in
5418*GNU* | *'with BFD'*)
5419 symcode='[ABCDGIRSTW]' ;;
5420esac
5421
5422# Transform an extracted symbol line into a proper C declaration.
5423# Some systems (esp. on ia64) link data and code symbols differently,
5424# so use this general approach.
5425lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5426
5427# Transform an extracted symbol line into symbol name and symbol address
5428lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5429lt_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'"
5430
5431# Handle CRLF in mingw tool chain
5432opt_cr=
5433case $build_os in
5434mingw*)
5435 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5436 ;;
5437esac
5438
5439# Try without a prefix underscore, then with it.
5440for ac_symprfx in "" "_"; do
5441
5442 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5443 symxfrm="\\1 $ac_symprfx\\2 \\2"
5444
5445 # Write the raw and C identifiers.
5446 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5447 # Fake it for dumpbin and say T for any non-static function
5448 # and D for any global variable.
5449 # Also find C++ and __fastcall symbols from MSVC++,
5450 # which start with @ or ?.
5451 lt_cv_sys_global_symbol_pipe="$AWK '"\
5452" {last_section=section; section=\$ 3};"\
5453" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5454" \$ 0!~/External *\|/{next};"\
5455" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5456" {if(hide[section]) next};"\
5457" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5458" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5459" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5460" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5461" ' prfx=^$ac_symprfx"
5462 else
5463 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5464 fi
5465
5466 # Check to see that the pipe works correctly.
5467 pipe_works=no
5468
5469 rm -f conftest*
5470 cat > conftest.$ac_ext <<_LT_EOF
5471#ifdef __cplusplus
5472extern "C" {
5473#endif
5474char nm_test_var;
5475void nm_test_func(void);
5476void nm_test_func(void){}
5477#ifdef __cplusplus
5478}
5479#endif
5480int main(){nm_test_var='a';nm_test_func();return(0);}
5481_LT_EOF
5482
5483 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5484 (eval $ac_compile) 2>&5
5485 ac_status=$?
5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5487 test $ac_status = 0; }; then
5488 # Now try to grab the symbols.
5489 nlist=conftest.nm
5490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5491 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5492 ac_status=$?
5493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5494 test $ac_status = 0; } && test -s "$nlist"; then
5495 # Try sorting and uniquifying the output.
5496 if sort "$nlist" | uniq > "$nlist"T; then
5497 mv -f "$nlist"T "$nlist"
5498 else
5499 rm -f "$nlist"T
5500 fi
5501
5502 # Make sure that we snagged all the symbols we need.
5503 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5504 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5505 cat <<_LT_EOF > conftest.$ac_ext
5506#ifdef __cplusplus
5507extern "C" {
5508#endif
5509
5510_LT_EOF
5511 # Now generate the symbol file.
5512 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5513
5514 cat <<_LT_EOF >> conftest.$ac_ext
5515
5516/* The mapping between symbol names and symbols. */
5517const struct {
5518 const char *name;
5519 void *address;
5520}
5521lt__PROGRAM__LTX_preloaded_symbols[] =
5522{
5523 { "@PROGRAM@", (void *) 0 },
5524_LT_EOF
5525 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5526 cat <<\_LT_EOF >> conftest.$ac_ext
5527 {0, (void *) 0}
5528};
5529
5530/* This works around a problem in FreeBSD linker */
5531#ifdef FREEBSD_WORKAROUND
5532static const void *lt_preloaded_setup() {
5533 return lt__PROGRAM__LTX_preloaded_symbols;
5534}
5535#endif
5536
5537#ifdef __cplusplus
5538}
5539#endif
5540_LT_EOF
5541 # Now try linking the two files.
5542 mv conftest.$ac_objext conftstm.$ac_objext
5543 lt_save_LIBS="$LIBS"
5544 lt_save_CFLAGS="$CFLAGS"
5545 LIBS="conftstm.$ac_objext"
5546 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5548 (eval $ac_link) 2>&5
5549 ac_status=$?
5550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5551 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5552 pipe_works=yes
5553 fi
5554 LIBS="$lt_save_LIBS"
5555 CFLAGS="$lt_save_CFLAGS"
5556 else
5557 echo "cannot find nm_test_func in $nlist" >&5
5558 fi
5559 else
5560 echo "cannot find nm_test_var in $nlist" >&5
5561 fi
5562 else
5563 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5564 fi
5565 else
5566 echo "$progname: failed program was:" >&5
5567 cat conftest.$ac_ext >&5
5568 fi
5569 rm -rf conftest* conftst*
5570
5571 # Do not use the global_symbol_pipe unless it works.
5572 if test "$pipe_works" = yes; then
5573 break
5574 else
5575 lt_cv_sys_global_symbol_pipe=
5576 fi
5577done
5578
5579fi
5580
5581if test -z "$lt_cv_sys_global_symbol_pipe"; then
5582 lt_cv_sys_global_symbol_to_cdecl=
5583fi
5584if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5586$as_echo "failed" >&6; }
5587else
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5589$as_echo "ok" >&6; }
5590fi
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613# Check whether --enable-libtool-lock was given.
5614if test "${enable_libtool_lock+set}" = set; then :
5615 enableval=$enable_libtool_lock;
5616fi
5617
5618test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5619
5620# Some flags need to be propagated to the compiler or linker for good
5621# libtool support.
5622case $host in
5623ia64-*-hpux*)
5624 # Find out which ABI we are using.
5625 echo 'int i;' > conftest.$ac_ext
5626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5627 (eval $ac_compile) 2>&5
5628 ac_status=$?
5629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5630 test $ac_status = 0; }; then
5631 case `/usr/bin/file conftest.$ac_objext` in
5632 *ELF-32*)
5633 HPUX_IA64_MODE="32"
5634 ;;
5635 *ELF-64*)
5636 HPUX_IA64_MODE="64"
5637 ;;
5638 esac
5639 fi
5640 rm -rf conftest*
5641 ;;
5642*-*-irix6*)
5643 # Find out which ABI we are using.
5644 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5646 (eval $ac_compile) 2>&5
5647 ac_status=$?
5648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5649 test $ac_status = 0; }; then
5650 if test "$lt_cv_prog_gnu_ld" = yes; then
5651 case `/usr/bin/file conftest.$ac_objext` in
5652 *32-bit*)
5653 LD="${LD-ld} -melf32bsmip"
5654 ;;
5655 *N32*)
5656 LD="${LD-ld} -melf32bmipn32"
5657 ;;
5658 *64-bit*)
5659 LD="${LD-ld} -melf64bmip"
5660 ;;
5661 esac
5662 else
5663 case `/usr/bin/file conftest.$ac_objext` in
5664 *32-bit*)
5665 LD="${LD-ld} -32"
5666 ;;
5667 *N32*)
5668 LD="${LD-ld} -n32"
5669 ;;
5670 *64-bit*)
5671 LD="${LD-ld} -64"
5672 ;;
5673 esac
5674 fi
5675 fi
5676 rm -rf conftest*
5677 ;;
5678
bf3d9781 5679x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6bb11ab3
L
5680s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5681 # Find out which ABI we are using.
5682 echo 'int i;' > conftest.$ac_ext
5683 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5684 (eval $ac_compile) 2>&5
5685 ac_status=$?
5686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687 test $ac_status = 0; }; then
5688 case `/usr/bin/file conftest.o` in
5689 *32-bit*)
5690 case $host in
5691 x86_64-*kfreebsd*-gnu)
5692 LD="${LD-ld} -m elf_i386_fbsd"
5693 ;;
5694 x86_64-*linux*)
5695 case `/usr/bin/file conftest.o` in
5696 *x86-64*)
5697 LD="${LD-ld} -m elf32_x86_64"
5698 ;;
5699 *)
5700 LD="${LD-ld} -m elf_i386"
5701 ;;
5702 esac
5703 ;;
bf3d9781
AM
5704 powerpc64le-*linux*)
5705 LD="${LD-ld} -m elf32lppclinux"
5706 ;;
5707 powerpc64-*linux*)
6bb11ab3
L
5708 LD="${LD-ld} -m elf32ppclinux"
5709 ;;
5710 s390x-*linux*)
5711 LD="${LD-ld} -m elf_s390"
5712 ;;
5713 sparc64-*linux*)
5714 LD="${LD-ld} -m elf32_sparc"
5715 ;;
5716 esac
5717 ;;
5718 *64-bit*)
5719 case $host in
5720 x86_64-*kfreebsd*-gnu)
5721 LD="${LD-ld} -m elf_x86_64_fbsd"
5722 ;;
5723 x86_64-*linux*)
5724 LD="${LD-ld} -m elf_x86_64"
5725 ;;
bf3d9781
AM
5726 powerpcle-*linux*)
5727 LD="${LD-ld} -m elf64lppc"
5728 ;;
5729 powerpc-*linux*)
6bb11ab3
L
5730 LD="${LD-ld} -m elf64ppc"
5731 ;;
5732 s390*-*linux*|s390*-*tpf*)
5733 LD="${LD-ld} -m elf64_s390"
5734 ;;
5735 sparc*-*linux*)
5736 LD="${LD-ld} -m elf64_sparc"
5737 ;;
5738 esac
5739 ;;
5740 esac
5741 fi
5742 rm -rf conftest*
5743 ;;
5744
5745*-*-sco3.2v5*)
5746 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5747 SAVE_CFLAGS="$CFLAGS"
5748 CFLAGS="$CFLAGS -belf"
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5750$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
d0ac1c44 5751if ${lt_cv_cc_needs_belf+:} false; then :
6bb11ab3
L
5752 $as_echo_n "(cached) " >&6
5753else
5754 ac_ext=c
5755ac_cpp='$CPP $CPPFLAGS'
5756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5758ac_compiler_gnu=$ac_cv_c_compiler_gnu
5759
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761/* end confdefs.h. */
5762
5763int
5764main ()
5765{
5766
5767 ;
5768 return 0;
5769}
5770_ACEOF
5771if ac_fn_c_try_link "$LINENO"; then :
5772 lt_cv_cc_needs_belf=yes
5773else
5774 lt_cv_cc_needs_belf=no
5775fi
5776rm -f core conftest.err conftest.$ac_objext \
5777 conftest$ac_exeext conftest.$ac_ext
5778 ac_ext=c
5779ac_cpp='$CPP $CPPFLAGS'
5780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782ac_compiler_gnu=$ac_cv_c_compiler_gnu
5783
5784fi
5785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5786$as_echo "$lt_cv_cc_needs_belf" >&6; }
5787 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5788 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5789 CFLAGS="$SAVE_CFLAGS"
5790 fi
5791 ;;
5792sparc*-*solaris*)
5793 # Find out which ABI we are using.
5794 echo 'int i;' > conftest.$ac_ext
5795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5796 (eval $ac_compile) 2>&5
5797 ac_status=$?
5798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5799 test $ac_status = 0; }; then
5800 case `/usr/bin/file conftest.o` in
5801 *64-bit*)
5802 case $lt_cv_prog_gnu_ld in
5803 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5804 *)
5805 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5806 LD="${LD-ld} -64"
5807 fi
5808 ;;
5809 esac
5810 ;;
5811 esac
5812 fi
5813 rm -rf conftest*
5814 ;;
5815esac
5816
5817need_locks="$enable_libtool_lock"
5818
5819
5820 case $host_os in
5821 rhapsody* | darwin*)
5822 if test -n "$ac_tool_prefix"; then
5823 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5824set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5827if ${ac_cv_prog_DSYMUTIL+:} false; then :
6bb11ab3
L
5828 $as_echo_n "(cached) " >&6
5829else
5830 if test -n "$DSYMUTIL"; then
5831 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5840 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5843 fi
5844done
5845 done
5846IFS=$as_save_IFS
5847
5848fi
5849fi
5850DSYMUTIL=$ac_cv_prog_DSYMUTIL
5851if test -n "$DSYMUTIL"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5853$as_echo "$DSYMUTIL" >&6; }
5854else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856$as_echo "no" >&6; }
5857fi
5858
5859
5860fi
5861if test -z "$ac_cv_prog_DSYMUTIL"; then
5862 ac_ct_DSYMUTIL=$DSYMUTIL
5863 # Extract the first word of "dsymutil", so it can be a program name with args.
5864set dummy dsymutil; ac_word=$2
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5867if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6bb11ab3
L
5868 $as_echo_n "(cached) " >&6
5869else
5870 if test -n "$ac_ct_DSYMUTIL"; then
5871 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5880 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 break 2
5883 fi
5884done
5885 done
5886IFS=$as_save_IFS
5887
5888fi
5889fi
5890ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5891if test -n "$ac_ct_DSYMUTIL"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5893$as_echo "$ac_ct_DSYMUTIL" >&6; }
5894else
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897fi
5898
5899 if test "x$ac_ct_DSYMUTIL" = x; then
5900 DSYMUTIL=":"
5901 else
5902 case $cross_compiling:$ac_tool_warned in
5903yes:)
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5906ac_tool_warned=yes ;;
5907esac
5908 DSYMUTIL=$ac_ct_DSYMUTIL
5909 fi
5910else
5911 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5912fi
5913
5914 if test -n "$ac_tool_prefix"; then
5915 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5916set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5919if ${ac_cv_prog_NMEDIT+:} false; then :
6bb11ab3
L
5920 $as_echo_n "(cached) " >&6
5921else
5922 if test -n "$NMEDIT"; then
5923 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5924else
5925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5926for as_dir in $PATH
5927do
5928 IFS=$as_save_IFS
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5932 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5934 break 2
5935 fi
5936done
5937 done
5938IFS=$as_save_IFS
5939
5940fi
5941fi
5942NMEDIT=$ac_cv_prog_NMEDIT
5943if test -n "$NMEDIT"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5945$as_echo "$NMEDIT" >&6; }
5946else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948$as_echo "no" >&6; }
5949fi
5950
5951
5952fi
5953if test -z "$ac_cv_prog_NMEDIT"; then
5954 ac_ct_NMEDIT=$NMEDIT
5955 # Extract the first word of "nmedit", so it can be a program name with args.
5956set dummy nmedit; ac_word=$2
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5958$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 5959if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6bb11ab3
L
5960 $as_echo_n "(cached) " >&6
5961else
5962 if test -n "$ac_ct_NMEDIT"; then
5963 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5964else
5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966for as_dir in $PATH
5967do
5968 IFS=$as_save_IFS
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
5972 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5974 break 2
5975 fi
5976done
5977 done
5978IFS=$as_save_IFS
5979
5980fi
5981fi
5982ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5983if test -n "$ac_ct_NMEDIT"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5985$as_echo "$ac_ct_NMEDIT" >&6; }
5986else
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5988$as_echo "no" >&6; }
5989fi
5990
5991 if test "x$ac_ct_NMEDIT" = x; then
5992 NMEDIT=":"
5993 else
5994 case $cross_compiling:$ac_tool_warned in
5995yes:)
5996{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5997$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5998ac_tool_warned=yes ;;
5999esac
6000 NMEDIT=$ac_ct_NMEDIT
6001 fi
6002else
6003 NMEDIT="$ac_cv_prog_NMEDIT"
6004fi
6005
6006 if test -n "$ac_tool_prefix"; then
6007 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6008set dummy ${ac_tool_prefix}lipo; ac_word=$2
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6011if ${ac_cv_prog_LIPO+:} false; then :
6bb11ab3
L
6012 $as_echo_n "(cached) " >&6
6013else
6014 if test -n "$LIPO"; then
6015 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6016else
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6024 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 break 2
6027 fi
6028done
6029 done
6030IFS=$as_save_IFS
6031
6032fi
6033fi
6034LIPO=$ac_cv_prog_LIPO
6035if test -n "$LIPO"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6037$as_echo "$LIPO" >&6; }
6038else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040$as_echo "no" >&6; }
6041fi
6042
6043
6044fi
6045if test -z "$ac_cv_prog_LIPO"; then
6046 ac_ct_LIPO=$LIPO
6047 # Extract the first word of "lipo", so it can be a program name with args.
6048set dummy lipo; ac_word=$2
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6050$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6051if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6bb11ab3
L
6052 $as_echo_n "(cached) " >&6
6053else
6054 if test -n "$ac_ct_LIPO"; then
6055 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6056else
6057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6058for as_dir in $PATH
6059do
6060 IFS=$as_save_IFS
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6064 ac_cv_prog_ac_ct_LIPO="lipo"
6065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6066 break 2
6067 fi
6068done
6069 done
6070IFS=$as_save_IFS
6071
6072fi
6073fi
6074ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6075if test -n "$ac_ct_LIPO"; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6077$as_echo "$ac_ct_LIPO" >&6; }
6078else
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6080$as_echo "no" >&6; }
6081fi
6082
6083 if test "x$ac_ct_LIPO" = x; then
6084 LIPO=":"
6085 else
6086 case $cross_compiling:$ac_tool_warned in
6087yes:)
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6090ac_tool_warned=yes ;;
6091esac
6092 LIPO=$ac_ct_LIPO
6093 fi
6094else
6095 LIPO="$ac_cv_prog_LIPO"
6096fi
6097
6098 if test -n "$ac_tool_prefix"; then
6099 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6100set dummy ${ac_tool_prefix}otool; ac_word=$2
6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6102$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6103if ${ac_cv_prog_OTOOL+:} false; then :
6bb11ab3
L
6104 $as_echo_n "(cached) " >&6
6105else
6106 if test -n "$OTOOL"; then
6107 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6108else
6109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6110for as_dir in $PATH
6111do
6112 IFS=$as_save_IFS
6113 test -z "$as_dir" && as_dir=.
6114 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6116 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6118 break 2
6119 fi
6120done
6121 done
6122IFS=$as_save_IFS
6123
6124fi
6125fi
6126OTOOL=$ac_cv_prog_OTOOL
6127if test -n "$OTOOL"; then
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6129$as_echo "$OTOOL" >&6; }
6130else
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6132$as_echo "no" >&6; }
6133fi
6134
6135
6136fi
6137if test -z "$ac_cv_prog_OTOOL"; then
6138 ac_ct_OTOOL=$OTOOL
6139 # Extract the first word of "otool", so it can be a program name with args.
6140set dummy otool; ac_word=$2
6141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6142$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6143if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6bb11ab3
L
6144 $as_echo_n "(cached) " >&6
6145else
6146 if test -n "$ac_ct_OTOOL"; then
6147 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6148else
6149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6150for as_dir in $PATH
6151do
6152 IFS=$as_save_IFS
6153 test -z "$as_dir" && as_dir=.
6154 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6156 ac_cv_prog_ac_ct_OTOOL="otool"
6157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6158 break 2
6159 fi
6160done
6161 done
6162IFS=$as_save_IFS
6163
6164fi
6165fi
6166ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6167if test -n "$ac_ct_OTOOL"; then
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6169$as_echo "$ac_ct_OTOOL" >&6; }
6170else
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6172$as_echo "no" >&6; }
6173fi
6174
6175 if test "x$ac_ct_OTOOL" = x; then
6176 OTOOL=":"
6177 else
6178 case $cross_compiling:$ac_tool_warned in
6179yes:)
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6182ac_tool_warned=yes ;;
6183esac
6184 OTOOL=$ac_ct_OTOOL
6185 fi
6186else
6187 OTOOL="$ac_cv_prog_OTOOL"
6188fi
6189
6190 if test -n "$ac_tool_prefix"; then
6191 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6192set dummy ${ac_tool_prefix}otool64; ac_word=$2
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6194$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6195if ${ac_cv_prog_OTOOL64+:} false; then :
6bb11ab3
L
6196 $as_echo_n "(cached) " >&6
6197else
6198 if test -n "$OTOOL64"; then
6199 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6200else
6201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202for as_dir in $PATH
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
6206 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6208 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 break 2
6211 fi
6212done
6213 done
6214IFS=$as_save_IFS
6215
6216fi
6217fi
6218OTOOL64=$ac_cv_prog_OTOOL64
6219if test -n "$OTOOL64"; then
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6221$as_echo "$OTOOL64" >&6; }
6222else
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224$as_echo "no" >&6; }
6225fi
6226
6227
6228fi
6229if test -z "$ac_cv_prog_OTOOL64"; then
6230 ac_ct_OTOOL64=$OTOOL64
6231 # Extract the first word of "otool64", so it can be a program name with args.
6232set dummy otool64; ac_word=$2
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6234$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6235if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6bb11ab3
L
6236 $as_echo_n "(cached) " >&6
6237else
6238 if test -n "$ac_ct_OTOOL64"; then
6239 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6240else
6241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6242for as_dir in $PATH
6243do
6244 IFS=$as_save_IFS
6245 test -z "$as_dir" && as_dir=.
6246 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6248 ac_cv_prog_ac_ct_OTOOL64="otool64"
6249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 break 2
6251 fi
6252done
6253 done
6254IFS=$as_save_IFS
6255
6256fi
6257fi
6258ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6259if test -n "$ac_ct_OTOOL64"; then
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6261$as_echo "$ac_ct_OTOOL64" >&6; }
6262else
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6264$as_echo "no" >&6; }
6265fi
6266
6267 if test "x$ac_ct_OTOOL64" = x; then
6268 OTOOL64=":"
6269 else
6270 case $cross_compiling:$ac_tool_warned in
6271yes:)
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6274ac_tool_warned=yes ;;
6275esac
6276 OTOOL64=$ac_ct_OTOOL64
6277 fi
6278else
6279 OTOOL64="$ac_cv_prog_OTOOL64"
6280fi
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6309$as_echo_n "checking for -single_module linker flag... " >&6; }
d0ac1c44 6310if ${lt_cv_apple_cc_single_mod+:} false; then :
6bb11ab3
L
6311 $as_echo_n "(cached) " >&6
6312else
6313 lt_cv_apple_cc_single_mod=no
6314 if test -z "${LT_MULTI_MODULE}"; then
6315 # By default we will add the -single_module flag. You can override
6316 # by either setting the environment variable LT_MULTI_MODULE
6317 # non-empty at configure time, or by adding -multi_module to the
6318 # link flags.
6319 rm -rf libconftest.dylib*
6320 echo "int foo(void){return 1;}" > conftest.c
6321 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6322-dynamiclib -Wl,-single_module conftest.c" >&5
6323 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6324 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6325 _lt_result=$?
6326 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6327 lt_cv_apple_cc_single_mod=yes
6328 else
6329 cat conftest.err >&5
6330 fi
6331 rm -rf libconftest.dylib*
6332 rm -f conftest.*
6333 fi
6334fi
6335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6336$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6338$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
d0ac1c44 6339if ${lt_cv_ld_exported_symbols_list+:} false; then :
6bb11ab3
L
6340 $as_echo_n "(cached) " >&6
6341else
6342 lt_cv_ld_exported_symbols_list=no
6343 save_LDFLAGS=$LDFLAGS
6344 echo "_main" > conftest.sym
6345 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6347/* end confdefs.h. */
6348
6349int
6350main ()
6351{
6352
6353 ;
6354 return 0;
6355}
6356_ACEOF
6357if ac_fn_c_try_link "$LINENO"; then :
6358 lt_cv_ld_exported_symbols_list=yes
6359else
6360 lt_cv_ld_exported_symbols_list=no
6361fi
6362rm -f core conftest.err conftest.$ac_objext \
6363 conftest$ac_exeext conftest.$ac_ext
6364 LDFLAGS="$save_LDFLAGS"
6365
6366fi
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6368$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6370$as_echo_n "checking for -force_load linker flag... " >&6; }
d0ac1c44 6371if ${lt_cv_ld_force_load+:} false; then :
6bb11ab3
L
6372 $as_echo_n "(cached) " >&6
6373else
6374 lt_cv_ld_force_load=no
6375 cat > conftest.c << _LT_EOF
6376int forced_loaded() { return 2;}
6377_LT_EOF
6378 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6379 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6380 echo "$AR cru libconftest.a conftest.o" >&5
6381 $AR cru libconftest.a conftest.o 2>&5
6382 cat > conftest.c << _LT_EOF
6383int main() { return 0;}
6384_LT_EOF
6385 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6386 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6387 _lt_result=$?
6388 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6389 lt_cv_ld_force_load=yes
6390 else
6391 cat conftest.err >&5
6392 fi
6393 rm -f conftest.err libconftest.a conftest conftest.c
6394 rm -rf conftest.dSYM
6395
6396fi
6397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6398$as_echo "$lt_cv_ld_force_load" >&6; }
6399 case $host_os in
6400 rhapsody* | darwin1.[012])
6401 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6402 darwin1.*)
6403 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6404 darwin*) # darwin 5.x on
6405 # if running on 10.5 or later, the deployment target defaults
6406 # to the OS version, if on x86, and 10.4, the deployment
6407 # target defaults to 10.4. Don't you love it?
6408 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6409 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6410 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5cddc23a 6411 10.[012][,.]*)
6bb11ab3
L
6412 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6413 10.*)
6414 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6415 esac
6416 ;;
6417 esac
6418 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6419 _lt_dar_single_mod='$single_module'
6420 fi
6421 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6422 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6423 else
6424 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6425 fi
6426 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6427 _lt_dsymutil='~$DSYMUTIL $lib || :'
6428 else
6429 _lt_dsymutil=
6430 fi
6431 ;;
6432 esac
6433
6434for ac_header in dlfcn.h
6435do :
6436 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6437"
d0ac1c44 6438if test "x$ac_cv_header_dlfcn_h" = xyes; then :
6bb11ab3
L
6439 cat >>confdefs.h <<_ACEOF
6440#define HAVE_DLFCN_H 1
6441_ACEOF
6442
6443fi
6444
6445done
6446
6447
6448
ebe9564b 6449
6bb11ab3 6450
0cb8d851
MF
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6452$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d0ac1c44 6453if ${ac_cv_c_bigendian+:} false; then :
0cb8d851
MF
6454 $as_echo_n "(cached) " >&6
6455else
6456 ac_cv_c_bigendian=unknown
6457 # See if we're dealing with a universal compiler.
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459/* end confdefs.h. */
6460#ifndef __APPLE_CC__
6461 not a universal capable compiler
6462 #endif
6463 typedef int dummy;
6464
6465_ACEOF
6466if ac_fn_c_try_compile "$LINENO"; then :
6467
6468 # Check for potential -arch flags. It is not universal unless
6469 # there are at least two -arch flags with different values.
6470 ac_arch=
6471 ac_prev=
6472 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6473 if test -n "$ac_prev"; then
6474 case $ac_word in
6475 i?86 | x86_64 | ppc | ppc64)
6476 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6477 ac_arch=$ac_word
6478 else
6479 ac_cv_c_bigendian=universal
6480 break
6481 fi
6482 ;;
6483 esac
6484 ac_prev=
6485 elif test "x$ac_word" = "x-arch"; then
6486 ac_prev=arch
6487 fi
6488 done
6489fi
6490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6491 if test $ac_cv_c_bigendian = unknown; then
6492 # See if sys/param.h defines the BYTE_ORDER macro.
6493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6494/* end confdefs.h. */
6495#include <sys/types.h>
6496 #include <sys/param.h>
6497
6498int
6499main ()
6500{
6501#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6502 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6503 && LITTLE_ENDIAN)
6504 bogus endian macros
6505 #endif
6506
6507 ;
6508 return 0;
6509}
6510_ACEOF
6511if ac_fn_c_try_compile "$LINENO"; then :
6512 # It does; now see whether it defined to BIG_ENDIAN or not.
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514/* end confdefs.h. */
6515#include <sys/types.h>
6516 #include <sys/param.h>
6517
6518int
6519main ()
6520{
6521#if BYTE_ORDER != BIG_ENDIAN
6522 not big endian
6523 #endif
6524
6525 ;
6526 return 0;
6527}
6528_ACEOF
6529if ac_fn_c_try_compile "$LINENO"; then :
6530 ac_cv_c_bigendian=yes
6531else
6532 ac_cv_c_bigendian=no
6533fi
6534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535fi
6536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 fi
6538 if test $ac_cv_c_bigendian = unknown; then
6539 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6541/* end confdefs.h. */
6542#include <limits.h>
6543
6544int
6545main ()
6546{
6547#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6548 bogus endian macros
6549 #endif
6550
6551 ;
6552 return 0;
6553}
6554_ACEOF
6555if ac_fn_c_try_compile "$LINENO"; then :
6556 # It does; now see whether it defined to _BIG_ENDIAN or not.
6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6558/* end confdefs.h. */
6559#include <limits.h>
6560
6561int
6562main ()
6563{
6564#ifndef _BIG_ENDIAN
6565 not big endian
6566 #endif
6567
6568 ;
6569 return 0;
6570}
6571_ACEOF
6572if ac_fn_c_try_compile "$LINENO"; then :
6573 ac_cv_c_bigendian=yes
6574else
6575 ac_cv_c_bigendian=no
6576fi
6577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578fi
6579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 fi
6581 if test $ac_cv_c_bigendian = unknown; then
6582 # Compile a test program.
6583 if test "$cross_compiling" = yes; then :
6584 # Try to guess by grepping values from an object file.
6585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6586/* end confdefs.h. */
6587short int ascii_mm[] =
6588 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6589 short int ascii_ii[] =
6590 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6591 int use_ascii (int i) {
6592 return ascii_mm[i] + ascii_ii[i];
6593 }
6594 short int ebcdic_ii[] =
6595 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6596 short int ebcdic_mm[] =
6597 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6598 int use_ebcdic (int i) {
6599 return ebcdic_mm[i] + ebcdic_ii[i];
6600 }
6601 extern int foo;
6602
6603int
6604main ()
6605{
6606return use_ascii (foo) == use_ebcdic (foo);
6607 ;
6608 return 0;
6609}
6610_ACEOF
6611if ac_fn_c_try_compile "$LINENO"; then :
6612 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6613 ac_cv_c_bigendian=yes
6614 fi
6615 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6616 if test "$ac_cv_c_bigendian" = unknown; then
6617 ac_cv_c_bigendian=no
6618 else
6619 # finding both strings is unlikely to happen, but who knows?
6620 ac_cv_c_bigendian=unknown
6621 fi
6622 fi
6623fi
6624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625else
6626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627/* end confdefs.h. */
6628$ac_includes_default
6629int
6630main ()
6631{
6632
6633 /* Are we little or big endian? From Harbison&Steele. */
6634 union
6635 {
6636 long int l;
6637 char c[sizeof (long int)];
6638 } u;
6639 u.l = 1;
6640 return u.c[sizeof (long int) - 1] == 1;
6641
6642 ;
6643 return 0;
6644}
6645_ACEOF
6646if ac_fn_c_try_run "$LINENO"; then :
6647 ac_cv_c_bigendian=no
6648else
6649 ac_cv_c_bigendian=yes
6650fi
6651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6652 conftest.$ac_objext conftest.beam conftest.$ac_ext
6653fi
6654
6655 fi
6656fi
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6658$as_echo "$ac_cv_c_bigendian" >&6; }
6659 case $ac_cv_c_bigendian in #(
6660 yes)
6661 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6662;; #(
6663 no)
6664 ;; #(
6665 universal)
6666
6667$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6668
6669 ;; #(
6670 *)
d0ac1c44 6671 as_fn_error $? "unknown endianness
0cb8d851
MF
6672 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6673 esac
6674
6bb11ab3
L
6675
6676
6677
c25ea03d 6678if test "x$cross_compiling" = "xno"; then
aa0fca16 6679 : "${AR_FOR_BUILD:=\$(AR)}"
c25ea03d 6680 : "${CC_FOR_BUILD:=\$(CC)}"
aa0fca16 6681 : "${RANLIB_FOR_BUILD:=\$(RANLIB)}"
c25ea03d 6682 : "${CFLAGS_FOR_BUILD:=\$(CFLAGS)}"
c2783492 6683 : "${LDFLAGS_FOR_BUILD:=\$(LDFLAGS)}"
c25ea03d 6684else
aa0fca16 6685 : "${AR_FOR_BUILD:=ar}"
c25ea03d 6686 : "${CC_FOR_BUILD:=gcc}"
aa0fca16 6687 : "${RANLIB_FOR_BUILD:=ranlib}"
c25ea03d 6688 : "${CFLAGS_FOR_BUILD:=-g -O}"
c2783492 6689 : "${LDLFAGS_FOR_BUILD:=}"
6bb11ab3
L
6690fi
6691
6692
6693
c25ea03d 6694
c2783492 6695
aa0fca16
MF
6696
6697
a3e2cc64
MF
6698if test -n "$ac_tool_prefix"; then
6699 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6700set dummy ${ac_tool_prefix}ar; ac_word=$2
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702$as_echo_n "checking for $ac_word... " >&6; }
6703if ${ac_cv_prog_AR+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705else
6706 if test -n "$AR"; then
6707 ac_cv_prog_AR="$AR" # Let the user override the test.
6708else
6709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710for as_dir in $PATH
6711do
6712 IFS=$as_save_IFS
6713 test -z "$as_dir" && as_dir=.
6714 for ac_exec_ext in '' $ac_executable_extensions; do
6715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716 ac_cv_prog_AR="${ac_tool_prefix}ar"
6717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 break 2
6719 fi
6720done
6721 done
6722IFS=$as_save_IFS
6723
6724fi
6725fi
6726AR=$ac_cv_prog_AR
6727if test -n "$AR"; then
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6729$as_echo "$AR" >&6; }
6730else
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732$as_echo "no" >&6; }
6733fi
6734
6735
6736fi
6737if test -z "$ac_cv_prog_AR"; then
6738 ac_ct_AR=$AR
6739 # Extract the first word of "ar", so it can be a program name with args.
6740set dummy ar; ac_word=$2
6741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742$as_echo_n "checking for $ac_word... " >&6; }
6743if ${ac_cv_prog_ac_ct_AR+:} false; then :
6744 $as_echo_n "(cached) " >&6
6745else
6746 if test -n "$ac_ct_AR"; then
6747 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6748else
6749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750for as_dir in $PATH
6751do
6752 IFS=$as_save_IFS
6753 test -z "$as_dir" && as_dir=.
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_ac_ct_AR="ar"
6757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760done
6761 done
6762IFS=$as_save_IFS
6763
6764fi
6765fi
6766ac_ct_AR=$ac_cv_prog_ac_ct_AR
6767if test -n "$ac_ct_AR"; then
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6769$as_echo "$ac_ct_AR" >&6; }
6770else
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772$as_echo "no" >&6; }
6773fi
6774
6775 if test "x$ac_ct_AR" = x; then
6776 AR=""
6777 else
6778 case $cross_compiling:$ac_tool_warned in
6779yes:)
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782ac_tool_warned=yes ;;
6783esac
6784 AR=$ac_ct_AR
6785 fi
6786else
6787 AR="$ac_cv_prog_AR"
6788fi
6bb11ab3
L
6789
6790if test -n "$ac_tool_prefix"; then
6791 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6792set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6795if ${ac_cv_prog_RANLIB+:} false; then :
6bb11ab3
L
6796 $as_echo_n "(cached) " >&6
6797else
6798 if test -n "$RANLIB"; then
6799 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6800else
6801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802for as_dir in $PATH
6803do
6804 IFS=$as_save_IFS
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6808 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 break 2
6811 fi
6812done
6813 done
6814IFS=$as_save_IFS
6815
6816fi
6817fi
6818RANLIB=$ac_cv_prog_RANLIB
6819if test -n "$RANLIB"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6821$as_echo "$RANLIB" >&6; }
6822else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824$as_echo "no" >&6; }
6825fi
6826
6827
6828fi
6829if test -z "$ac_cv_prog_RANLIB"; then
6830 ac_ct_RANLIB=$RANLIB
6831 # Extract the first word of "ranlib", so it can be a program name with args.
6832set dummy ranlib; ac_word=$2
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834$as_echo_n "checking for $ac_word... " >&6; }
d0ac1c44 6835if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6bb11ab3
L
6836 $as_echo_n "(cached) " >&6
6837else
6838 if test -n "$ac_ct_RANLIB"; then
6839 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6840else
6841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842for as_dir in $PATH
6843do
6844 IFS=$as_save_IFS
6845 test -z "$as_dir" && as_dir=.
6846 for ac_exec_ext in '' $ac_executable_extensions; do
d0ac1c44 6847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6bb11ab3
L
6848 ac_cv_prog_ac_ct_RANLIB="ranlib"
6849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 break 2
6851 fi
6852done
6853 done
6854IFS=$as_save_IFS
6855
6856fi
6857fi
6858ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6859if test -n "$ac_ct_RANLIB"; then
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6861$as_echo "$ac_ct_RANLIB" >&6; }
6862else
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864$as_echo "no" >&6; }
6865fi
6866
6867 if test "x$ac_ct_RANLIB" = x; then
6868 RANLIB=":"
6869 else
6870 case $cross_compiling:$ac_tool_warned in
6871yes:)
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874ac_tool_warned=yes ;;
6875esac
6876 RANLIB=$ac_ct_RANLIB
6877 fi
6878else
6879 RANLIB="$ac_cv_prog_RANLIB"
6880fi
6881
6882
46f900c0
MF
6883# Require C11 or newer. Autoconf-2.70 provides ac_cv_prog_cc_c11 when using
6884# AC_PROG_CC, but we're still using Autoconf-2.69, and the newest it understands
6885# is C99. So handle it ourselves.
6886:
6887C_DIALECT=
6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C11 is supported by default" >&5
6889$as_echo_n "checking whether C11 is supported by default... " >&6; }
6890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891/* end confdefs.h. */
6892
6893#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6894# error "C11 support not found"
6895#endif
6896
6897_ACEOF
6898if ac_fn_c_try_compile "$LINENO"; then :
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6900$as_echo "yes" >&6; }
6901else
6902
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6904$as_echo "no" >&6; }
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -std=c11 support" >&5
6906$as_echo_n "checking for -std=c11 support... " >&6; }
6907 ac_save_CC="$CC"
6908 CC="$CC -std=c11"
6909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910/* end confdefs.h. */
6911
6912#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
6913# error "C11 support not found"
6914#endif
6915
6916_ACEOF
6917if ac_fn_c_try_compile "$LINENO"; then :
6918
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6920$as_echo "yes" >&6; }
6921 CC="$ac_save_CC"
6922 C_DIALECT="-std=c11"
6923
6924else
6925 as_fn_error $? "C11 is required" "$LINENO" 5
6926fi
6927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6928fi
6929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930
6931
c2783492
MF
6932ac_config_headers="$ac_config_headers config.h:config.in"
6933
6934
6bb11ab3
L
6935# Some of the common include files depend on bfd.h, and bfd.h checks
6936# that config.h is included first by testing that the PACKAGE macro
6937# is defined.
6938PACKAGE=sim
6939
6940cat >>confdefs.h <<_ACEOF
6941#define PACKAGE "$PACKAGE"
6942_ACEOF
6943
6944
6945
6946# Dependency checking.
6947ac_config_commands="$ac_config_commands depdir"
6948
6949
6950depcc="$CC" am_compiler_list=
6951
6952am_depcomp=$ac_aux_dir/depcomp
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6954$as_echo_n "checking dependency style of $depcc... " >&6; }
d0ac1c44 6955if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6bb11ab3
L
6956 $as_echo_n "(cached) " >&6
6957else
6958 if test -f "$am_depcomp"; then
6959 # We make a subdir and do the tests there. Otherwise we can end up
6960 # making bogus files that we don't know about and never remove. For
6961 # instance it was reported that on HP-UX the gcc test will end up
6962 # making a dummy file named `D' -- because `-MD' means `put the output
6963 # in D'.
6964 mkdir conftest.dir
6965 # Copy depcomp to subdir because otherwise we won't find it if we're
6966 # using a relative directory.
6967 cp "$am_depcomp" conftest.dir
6968 cd conftest.dir
6969 # We will build objects and dependencies in a subdirectory because
6970 # it helps to detect inapplicable dependency modes. For instance
6971 # both Tru64's cc and ICC support -MD to output dependencies as a
6972 # side effect of compilation, but ICC will put the dependencies in
6973 # the current directory while Tru64 will put them in the object
6974 # directory.
6975 mkdir sub
6976
6977 am_cv_CC_dependencies_compiler_type=none
6978 if test "$am_compiler_list" = ""; then
6979 am_compiler_list=`sed -n 's/^\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6980 fi
6981 for depmode in $am_compiler_list; do
6982 if test $depmode = none; then break; fi
6983
6984 $as_echo "$as_me:$LINENO: trying $depmode" >&5
6985 # Setup a source with many dependencies, because some compilers
6986 # like to wrap large dependency lists on column 80 (with \), and
6987 # we should not choose a depcomp mode which is confused by this.
6988 #
6989 # We need to recreate these files for each test, as the compiler may
6990 # overwrite some of them when testing with obscure command lines.
6991 # This happens at least with the AIX C compiler.
6992 : > sub/conftest.c
6993 for i in 1 2 3 4 5 6; do
6994 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6995 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6996 # Solaris 8's {/usr,}/bin/sh.
6997 touch sub/conftst$i.h
6998 done
6999 echo "include sub/conftest.Po" > confmf
7000
7001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7002 # mode. It turns out that the SunPro C++ compiler does not properly
7003 # handle `-M -o', and we need to detect this.
7004 depcmd="depmode=$depmode \
7005 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7006 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7007 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c"
7008 echo "| $depcmd" | sed -e 's/ */ /g' >&5
7009 if env $depcmd > conftest.err 2>&1 &&
7010 grep sub/conftst6.h sub/conftest.Po >>conftest.err 2>&1 &&
7011 grep sub/conftest.${OBJEXT-o} sub/conftest.Po >>conftest.err 2>&1 &&
7012 ${MAKE-make} -s -f confmf >>conftest.err 2>&1; then
7013 # icc doesn't choke on unknown options, it will just issue warnings
7014 # or remarks (even with -Werror). So we grep stderr for any message
7015 # that says an option was ignored or not supported.
7016 # When given -MP, icc 7.0 and 7.1 complain thusly:
7017 # icc: Command line warning: ignoring option '-M'; no argument required
7018 # The diagnosis changed in icc 8.0:
7019 # icc: Command line remark: option '-MP' not supported
7020 if (grep 'ignoring option' conftest.err ||
7021 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7022 am_cv_CC_dependencies_compiler_type=$depmode
7023 $as_echo "$as_me:$LINENO: success" >&5
7024 break
7025 fi
7026 fi
7027 $as_echo "$as_me:$LINENO: failure, diagnostics are:" >&5
7028 sed -e 's/^/| /' < conftest.err >&5
7029 done
7030
7031 cd ..
7032 rm -rf conftest.dir
7033else
7034 am_cv_CC_dependencies_compiler_type=none
7035fi
7036
7037fi
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7039$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7040if test x${am_cv_CC_dependencies_compiler_type-none} = xnone
d0ac1c44 7041then as_fn_error $? "no usable dependency style found" "$LINENO" 5
6bb11ab3
L
7042else CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7043
7044fi
7045
7046
6bb11ab3
L
7047ALL_LINGUAS=
7048# If we haven't got the data from the intl directory,
7049# assume NLS is disabled.
7050USE_NLS=no
7051LIBINTL=
7052LIBINTL_DEP=
7053INCINTL=
7054XGETTEXT=
7055GMSGFMT=
7056POSUB=
7057
7058if test -f ../../intl/config.intl; then
7059 . ../../intl/config.intl
7060fi
7061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7062$as_echo_n "checking whether NLS is requested... " >&6; }
7063if test x"$USE_NLS" != xyes; then
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066else
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7068$as_echo "yes" >&6; }
7069
7070$as_echo "#define ENABLE_NLS 1" >>confdefs.h
7071
7072
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
7074$as_echo_n "checking for catalogs to be installed... " >&6; }
7075 # Look for .po and .gmo files in the source directory.
7076 CATALOGS=
7077 XLINGUAS=
7078 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
7079 # If there aren't any .gmo files the shell will give us the
7080 # literal string "../path/to/srcdir/po/*.gmo" which has to be
7081 # weeded out.
7082 case "$cat" in *\**)
7083 continue;;
7084 esac
7085 # The quadruple backslash is collapsed to a double backslash
7086 # by the backticks, then collapsed again by the double quotes,
7087 # leaving us with one backslash in the sed expression (right
7088 # before the dot that mustn't act as a wildcard).
7089 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
7090 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
7091 # The user is allowed to set LINGUAS to a list of languages to
7092 # install catalogs for. If it's empty that means "all of them."
7093 if test "x$LINGUAS" = x; then
7094 CATALOGS="$CATALOGS $cat"
7095 XLINGUAS="$XLINGUAS $lang"
7096 else
7097 case "$LINGUAS" in *$lang*)
7098 CATALOGS="$CATALOGS $cat"
7099 XLINGUAS="$XLINGUAS $lang"
7100 ;;
7101 esac
7102 fi
7103 done
7104 LINGUAS="$XLINGUAS"
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
7106$as_echo "$LINGUAS" >&6; }
7107
7108
7109 DATADIRNAME=share
7110
7111 INSTOBJEXT=.mo
7112
7113 GENCAT=gencat
7114
7115 CATOBJEXT=.gmo
7116
7117fi
7118
6bb11ab3
L
7119# Check for socket libraries
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bind in -lsocket" >&5
7121$as_echo_n "checking for bind in -lsocket... " >&6; }
d0ac1c44 7122if ${ac_cv_lib_socket_bind+:} false; then :
6bb11ab3
L
7123 $as_echo_n "(cached) " >&6
7124else
7125 ac_check_lib_save_LIBS=$LIBS
7126LIBS="-lsocket $LIBS"
7127cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128/* end confdefs.h. */
7129
7130/* Override any GCC internal prototype to avoid an error.
7131 Use char because int might match the return type of a GCC
7132 builtin and then its argument prototype would still apply. */
7133#ifdef __cplusplus
7134extern "C"
7135#endif
7136char bind ();
7137int
7138main ()
7139{
7140return bind ();
7141 ;
7142 return 0;
7143}
7144_ACEOF
7145if ac_fn_c_try_link "$LINENO"; then :
7146 ac_cv_lib_socket_bind=yes
7147else
7148 ac_cv_lib_socket_bind=no
7149fi
7150rm -f core conftest.err conftest.$ac_objext \
7151 conftest$ac_exeext conftest.$ac_ext
7152LIBS=$ac_check_lib_save_LIBS
7153fi
7154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_bind" >&5
7155$as_echo "$ac_cv_lib_socket_bind" >&6; }
d0ac1c44 7156if test "x$ac_cv_lib_socket_bind" = xyes; then :
6bb11ab3
L
7157 cat >>confdefs.h <<_ACEOF
7158#define HAVE_LIBSOCKET 1
7159_ACEOF
7160
7161 LIBS="-lsocket $LIBS"
7162
7163fi
7164
7165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
7166$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
d0ac1c44 7167if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6bb11ab3
L
7168 $as_echo_n "(cached) " >&6
7169else
7170 ac_check_lib_save_LIBS=$LIBS
7171LIBS="-lnsl $LIBS"
7172cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7173/* end confdefs.h. */
7174
7175/* Override any GCC internal prototype to avoid an error.
7176 Use char because int might match the return type of a GCC
7177 builtin and then its argument prototype would still apply. */
7178#ifdef __cplusplus
7179extern "C"
7180#endif
7181char gethostbyname ();
7182int
7183main ()
7184{
7185return gethostbyname ();
7186 ;
7187 return 0;
7188}
7189_ACEOF
7190if ac_fn_c_try_link "$LINENO"; then :
7191 ac_cv_lib_nsl_gethostbyname=yes
7192else
7193 ac_cv_lib_nsl_gethostbyname=no
7194fi
7195rm -f core conftest.err conftest.$ac_objext \
7196 conftest$ac_exeext conftest.$ac_ext
7197LIBS=$ac_check_lib_save_LIBS
7198fi
7199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
7200$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
d0ac1c44 7201if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6bb11ab3
L
7202 cat >>confdefs.h <<_ACEOF
7203#define HAVE_LIBNSL 1
7204_ACEOF
7205
7206 LIBS="-lnsl $LIBS"
7207
7208fi
7209
7210
7211# BFD conditionally uses zlib, so we must link it in if libbfd does, by
7212# using the same condition.
7213
aadc9410 7214 # Use the system's zlib library.
7fed4b0b
L
7215 zlibdir="-L\$(top_builddir)/../zlib"
7216 zlibinc="-I\$(top_srcdir)/../zlib"
6bb11ab3 7217
aadc9410
MF
7218# Check whether --with-system-zlib was given.
7219if test "${with_system_zlib+set}" = set; then :
0ceaf1ec
L
7220 withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then
7221 zlibdir=
7222 zlibinc=
7223 fi
6bb11ab3
L
7224
7225fi
7226
6bb11ab3 7227
6bb11ab3 7228
6bb11ab3
L
7229
7230
7231# BFD uses libdl when when plugins enabled.
7232
faa743bb
RM
7233 maybe_plugins=no
7234 for ac_header in dlfcn.h
7235do :
7236 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7237"
d0ac1c44 7238if test "x$ac_cv_header_dlfcn_h" = xyes; then :
faa743bb
RM
7239 cat >>confdefs.h <<_ACEOF
7240#define HAVE_DLFCN_H 1
7241_ACEOF
7242 maybe_plugins=yes
7243fi
7244
7245done
7246
7247 for ac_header in windows.h
7248do :
7249 ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default
7250"
d0ac1c44 7251if test "x$ac_cv_header_windows_h" = xyes; then :
faa743bb
RM
7252 cat >>confdefs.h <<_ACEOF
7253#define HAVE_WINDOWS_H 1
7254_ACEOF
7255 maybe_plugins=yes
7256fi
7257
7258done
7259
7260
7261 # Check whether --enable-plugins was given.
6bb11ab3
L
7262if test "${enable_plugins+set}" = set; then :
7263 enableval=$enable_plugins; case "${enableval}" in
faa743bb
RM
7264 no) plugins=no ;;
7265 *) plugins=yes
7266 if test "$maybe_plugins" != "yes" ; then
d0ac1c44 7267 as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5
faa743bb
RM
7268 fi ;;
7269 esac
6bb11ab3 7270else
faa743bb
RM
7271 plugins=$maybe_plugins
7272
6bb11ab3
L
7273fi
7274
2974be62 7275 if test "$plugins" = "yes"; then
37f980dc
SM
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5
7277$as_echo_n "checking for library containing dlsym... " >&6; }
d0ac1c44 7278if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7279 $as_echo_n "(cached) " >&6
7280else
7281 ac_func_search_save_LIBS=$LIBS
7282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283/* end confdefs.h. */
7284
7285/* Override any GCC internal prototype to avoid an error.
7286 Use char because int might match the return type of a GCC
7287 builtin and then its argument prototype would still apply. */
7288#ifdef __cplusplus
7289extern "C"
7290#endif
37f980dc 7291char dlsym ();
2974be62
AM
7292int
7293main ()
7294{
37f980dc 7295return dlsym ();
2974be62
AM
7296 ;
7297 return 0;
7298}
7299_ACEOF
7300for ac_lib in '' dl; do
7301 if test -z "$ac_lib"; then
7302 ac_res="none required"
7303 else
7304 ac_res=-l$ac_lib
7305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7306 fi
7307 if ac_fn_c_try_link "$LINENO"; then :
37f980dc 7308 ac_cv_search_dlsym=$ac_res
2974be62
AM
7309fi
7310rm -f core conftest.err conftest.$ac_objext \
7311 conftest$ac_exeext
d0ac1c44 7312 if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7313 break
7314fi
7315done
d0ac1c44 7316if ${ac_cv_search_dlsym+:} false; then :
2974be62
AM
7317
7318else
37f980dc 7319 ac_cv_search_dlsym=no
2974be62
AM
7320fi
7321rm conftest.$ac_ext
7322LIBS=$ac_func_search_save_LIBS
7323fi
37f980dc
SM
7324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5
7325$as_echo "$ac_cv_search_dlsym" >&6; }
7326ac_res=$ac_cv_search_dlsym
2974be62
AM
7327if test "$ac_res" != no; then :
7328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7329
7330fi
7331
7332 fi
6bb11ab3
L
7333
7334 if test "$plugins" = yes; then
7335 PLUGINS_TRUE=
7336 PLUGINS_FALSE='#'
7337else
7338 PLUGINS_TRUE='#'
7339 PLUGINS_FALSE=
7340fi
7341
7342
7343
7344
7345
7346# Set options
7347enable_dlopen=yes
7348
7349
7350
7351
7352 enable_win32_dll=no
7353
7354
7355 # Check whether --enable-shared was given.
7356if test "${enable_shared+set}" = set; then :
7357 enableval=$enable_shared; p=${PACKAGE-default}
7358 case $enableval in
7359 yes) enable_shared=yes ;;
7360 no) enable_shared=no ;;
7361 *)
7362 enable_shared=no
7363 # Look at the argument we got. We use all the common list separators.
7364 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7365 for pkg in $enableval; do
7366 IFS="$lt_save_ifs"
7367 if test "X$pkg" = "X$p"; then
7368 enable_shared=yes
7369 fi
7370 done
7371 IFS="$lt_save_ifs"
7372 ;;
7373 esac
7374else
7375 enable_shared=yes
7376fi
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386 # Check whether --enable-static was given.
7387if test "${enable_static+set}" = set; then :
7388 enableval=$enable_static; p=${PACKAGE-default}
7389 case $enableval in
7390 yes) enable_static=yes ;;
7391 no) enable_static=no ;;
7392 *)
7393 enable_static=no
7394 # Look at the argument we got. We use all the common list separators.
7395 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7396 for pkg in $enableval; do
7397 IFS="$lt_save_ifs"
7398 if test "X$pkg" = "X$p"; then
7399 enable_static=yes
7400 fi
7401 done
7402 IFS="$lt_save_ifs"
7403 ;;
7404 esac
7405else
7406 enable_static=yes
7407fi
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418# Check whether --with-pic was given.
7419if test "${with_pic+set}" = set; then :
7420 withval=$with_pic; pic_mode="$withval"
7421else
7422 pic_mode=default
7423fi
7424
7425
7426test -z "$pic_mode" && pic_mode=default
7427
7428
7429
7430
7431
7432
7433
7434 # Check whether --enable-fast-install was given.
7435if test "${enable_fast_install+set}" = set; then :
7436 enableval=$enable_fast_install; p=${PACKAGE-default}
7437 case $enableval in
7438 yes) enable_fast_install=yes ;;
7439 no) enable_fast_install=no ;;
7440 *)
7441 enable_fast_install=no
7442 # Look at the argument we got. We use all the common list separators.
7443 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7444 for pkg in $enableval; do
7445 IFS="$lt_save_ifs"
7446 if test "X$pkg" = "X$p"; then
7447 enable_fast_install=yes
7448 fi
7449 done
7450 IFS="$lt_save_ifs"
7451 ;;
7452 esac
7453else
7454 enable_fast_install=yes
7455fi
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467# This can be used to rebuild libtool when needed
7468LIBTOOL_DEPS="$ltmain"
7469
7470# Always use our own libtool.
7471LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498test -z "$LN_S" && LN_S="ln -s"
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513if test -n "${ZSH_VERSION+set}" ; then
7514 setopt NO_GLOB_SUBST
7515fi
7516
7517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7518$as_echo_n "checking for objdir... " >&6; }
d0ac1c44 7519if ${lt_cv_objdir+:} false; then :
6bb11ab3
L
7520 $as_echo_n "(cached) " >&6
7521else
7522 rm -f .libs 2>/dev/null
7523mkdir .libs 2>/dev/null
7524if test -d .libs; then
7525 lt_cv_objdir=.libs
7526else
7527 # MS-DOS does not allow filenames that begin with a dot.
7528 lt_cv_objdir=_libs
7529fi
7530rmdir .libs 2>/dev/null
7531fi
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7533$as_echo "$lt_cv_objdir" >&6; }
7534objdir=$lt_cv_objdir
7535
7536
7537
7538
7539
7540cat >>confdefs.h <<_ACEOF
7541#define LT_OBJDIR "$lt_cv_objdir/"
7542_ACEOF
7543
7544
7545
7546
7547case $host_os in
7548aix3*)
7549 # AIX sometimes has problems with the GCC collect2 program. For some
7550 # reason, if we set the COLLECT_NAMES environment variable, the problems
7551 # vanish in a puff of smoke.
7552 if test "X${COLLECT_NAMES+set}" != Xset; then
7553 COLLECT_NAMES=
7554 export COLLECT_NAMES
7555 fi
7556 ;;
7557esac
7558
7559# Global variables:
7560ofile=libtool
7561can_build_shared=yes
7562
7563# All known linkers require a `.a' archive for static linking (except MSVC,
7564# which needs '.lib').
7565libext=a
7566
7567with_gnu_ld="$lt_cv_prog_gnu_ld"
7568
7569old_CC="$CC"
7570old_CFLAGS="$CFLAGS"
7571
7572# Set sane defaults for various variables
7573test -z "$CC" && CC=cc
7574test -z "$LTCC" && LTCC=$CC
7575test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7576test -z "$LD" && LD=ld
7577test -z "$ac_objext" && ac_objext=o
7578
7579for cc_temp in $compiler""; do
7580 case $cc_temp in
7581 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7582 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7583 \-*) ;;
7584 *) break;;
7585 esac
7586done
7587cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7588
7589
7590# Only perform the check for file, if the check method requires it
7591test -z "$MAGIC_CMD" && MAGIC_CMD=file
7592case $deplibs_check_method in
7593file_magic*)
7594 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7596$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
d0ac1c44 7597if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
7598 $as_echo_n "(cached) " >&6
7599else
7600 case $MAGIC_CMD in
7601[\\/*] | ?:[\\/]*)
7602 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7603 ;;
7604*)
7605 lt_save_MAGIC_CMD="$MAGIC_CMD"
7606 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7607 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7608 for ac_dir in $ac_dummy; do
7609 IFS="$lt_save_ifs"
7610 test -z "$ac_dir" && ac_dir=.
7611 if test -f $ac_dir/${ac_tool_prefix}file; then
7612 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7613 if test -n "$file_magic_test_file"; then
7614 case $deplibs_check_method in
7615 "file_magic "*)
7616 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7617 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7618 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7619 $EGREP "$file_magic_regex" > /dev/null; then
7620 :
7621 else
7622 cat <<_LT_EOF 1>&2
7623
7624*** Warning: the command libtool uses to detect shared libraries,
7625*** $file_magic_cmd, produces output that libtool cannot recognize.
7626*** The result is that libtool may fail to recognize shared libraries
7627*** as such. This will affect the creation of libtool libraries that
7628*** depend on shared libraries, but programs linked with such libtool
7629*** libraries will work regardless of this problem. Nevertheless, you
7630*** may want to report the problem to your system manager and/or to
7631*** bug-libtool@gnu.org
7632
7633_LT_EOF
7634 fi ;;
7635 esac
7636 fi
7637 break
7638 fi
7639 done
7640 IFS="$lt_save_ifs"
7641 MAGIC_CMD="$lt_save_MAGIC_CMD"
7642 ;;
7643esac
f0569246 7644fi
f0569246 7645
6bb11ab3
L
7646MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7647if test -n "$MAGIC_CMD"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7649$as_echo "$MAGIC_CMD" >&6; }
7650else
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652$as_echo "no" >&6; }
7653fi
7654
7655
7656
7657
7658
7659if test -z "$lt_cv_path_MAGIC_CMD"; then
7660 if test -n "$ac_tool_prefix"; then
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7662$as_echo_n "checking for file... " >&6; }
d0ac1c44 7663if ${lt_cv_path_MAGIC_CMD+:} false; then :
6bb11ab3
L
7664 $as_echo_n "(cached) " >&6
7665else
7666 case $MAGIC_CMD in
7667[\\/*] | ?:[\\/]*)
7668 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7669 ;;
7670*)
7671 lt_save_MAGIC_CMD="$MAGIC_CMD"
7672 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7673 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7674 for ac_dir in $ac_dummy; do
7675 IFS="$lt_save_ifs"
7676 test -z "$ac_dir" && ac_dir=.
7677 if test -f $ac_dir/file; then
7678 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7679 if test -n "$file_magic_test_file"; then
7680 case $deplibs_check_method in
7681 "file_magic "*)
7682 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7683 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7684 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7685 $EGREP "$file_magic_regex" > /dev/null; then
7686 :
7687 else
7688 cat <<_LT_EOF 1>&2
7689
7690*** Warning: the command libtool uses to detect shared libraries,
7691*** $file_magic_cmd, produces output that libtool cannot recognize.
7692*** The result is that libtool may fail to recognize shared libraries
7693*** as such. This will affect the creation of libtool libraries that
7694*** depend on shared libraries, but programs linked with such libtool
7695*** libraries will work regardless of this problem. Nevertheless, you
7696*** may want to report the problem to your system manager and/or to
7697*** bug-libtool@gnu.org
7698
7699_LT_EOF
7700 fi ;;
7701 esac
7702 fi
7703 break
7704 fi
7705 done
7706 IFS="$lt_save_ifs"
7707 MAGIC_CMD="$lt_save_MAGIC_CMD"
7708 ;;
81ecdfbb 7709esac
6bb11ab3
L
7710fi
7711
7712MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7713if test -n "$MAGIC_CMD"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7715$as_echo "$MAGIC_CMD" >&6; }
7716else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718$as_echo "no" >&6; }
7719fi
7720
7721
f0569246 7722 else
6bb11ab3 7723 MAGIC_CMD=:
f0569246
AC
7724 fi
7725fi
81ecdfbb 7726
6bb11ab3
L
7727 fi
7728 ;;
81ecdfbb 7729esac
6bb11ab3
L
7730
7731# Use C for the default configuration in the libtool script
7732
7733lt_save_CC="$CC"
7734ac_ext=c
7735ac_cpp='$CPP $CPPFLAGS'
7736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738ac_compiler_gnu=$ac_cv_c_compiler_gnu
7739
7740
7741# Source file extension for C test sources.
7742ac_ext=c
7743
7744# Object file extension for compiled C test sources.
7745objext=o
7746objext=$objext
7747
7748# Code to be used in simple compile tests
7749lt_simple_compile_test_code="int some_variable = 0;"
7750
7751# Code to be used in simple link tests
7752lt_simple_link_test_code='int main(){return(0);}'
7753
7754
7755
7756
7757
7758
7759
7760# If no C compiler was specified, use CC.
7761LTCC=${LTCC-"$CC"}
7762
7763# If no C compiler flags were specified, use CFLAGS.
7764LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7765
7766# Allow CC to be a program name with arguments.
7767compiler=$CC
7768
7769# Save the default compiler, since it gets overwritten when the other
7770# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7771compiler_DEFAULT=$CC
7772
7773# save warnings/boilerplate of simple test code
7774ac_outfile=conftest.$ac_objext
7775echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7776eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7777_lt_compiler_boilerplate=`cat conftest.err`
7778$RM conftest*
7779
7780ac_outfile=conftest.$ac_objext
7781echo "$lt_simple_link_test_code" >conftest.$ac_ext
7782eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7783_lt_linker_boilerplate=`cat conftest.err`
7784$RM -r conftest*
7785
7786
7787## CAVEAT EMPTOR:
7788## There is no encapsulation within the following macros, do not change
7789## the running order or otherwise move them around unless you know exactly
7790## what you are doing...
7791if test -n "$compiler"; then
7792
7793lt_prog_compiler_no_builtin_flag=
7794
7795if test "$GCC" = yes; then
7796 case $cc_basename in
7797 nvcc*)
7798 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7799 *)
7800 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
f0569246 7801 esac
6bb11ab3
L
7802
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7804$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
d0ac1c44 7805if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6bb11ab3 7806 $as_echo_n "(cached) " >&6
f0569246 7807else
6bb11ab3
L
7808 lt_cv_prog_compiler_rtti_exceptions=no
7809 ac_outfile=conftest.$ac_objext
7810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7811 lt_compiler_flag="-fno-rtti -fno-exceptions"
7812 # Insert the option either (1) after the last *FLAGS variable, or
7813 # (2) before a word containing "conftest.", or (3) at the end.
7814 # Note that $ac_compile itself does not contain backslashes and begins
7815 # with a dollar sign (not a hyphen), so the echo should work correctly.
7816 # The option is referenced via a variable to avoid confusing sed.
7817 lt_compile=`echo "$ac_compile" | $SED \
7818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7820 -e 's:$: $lt_compiler_flag:'`
7821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7822 (eval "$lt_compile" 2>conftest.err)
7823 ac_status=$?
7824 cat conftest.err >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 if (exit $ac_status) && test -s "$ac_outfile"; then
7827 # The compiler can only warn and ignore the option if not recognized
7828 # So say no if there are warnings other than the usual output.
7829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7830 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7831 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7832 lt_cv_prog_compiler_rtti_exceptions=yes
7833 fi
7834 fi
7835 $RM conftest*
7836
f0569246 7837fi
6bb11ab3
L
7838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7839$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7840
7841if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7842 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7843else
7844 :
7845fi
7846
7847fi
7848
7849
7850
7851
7852
7853
7854 lt_prog_compiler_wl=
7855lt_prog_compiler_pic=
7856lt_prog_compiler_static=
7857
7858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7859$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7860
7861 if test "$GCC" = yes; then
7862 lt_prog_compiler_wl='-Wl,'
7863 lt_prog_compiler_static='-static'
7864
7865 case $host_os in
7866 aix*)
7867 # All AIX code is PIC.
7868 if test "$host_cpu" = ia64; then
7869 # AIX 5 now supports IA64 processor
7870 lt_prog_compiler_static='-Bstatic'
7871 fi
7872 lt_prog_compiler_pic='-fPIC'
7873 ;;
7874
7875 amigaos*)
7876 case $host_cpu in
7877 powerpc)
7878 # see comment about AmigaOS4 .so support
7879 lt_prog_compiler_pic='-fPIC'
7880 ;;
7881 m68k)
7882 # FIXME: we need at least 68020 code to build shared libraries, but
7883 # adding the `-m68020' flag to GCC prevents building anything better,
7884 # like `-m68040'.
7885 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7886 ;;
7887 esac
7888 ;;
7889
7890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7891 # PIC is the default for these OSes.
7892 ;;
7893
7894 mingw* | cygwin* | pw32* | os2* | cegcc*)
7895 # This hack is so that the source file can tell whether it is being
7896 # built for inclusion in a dll (and should export symbols for example).
7897 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7898 # (--disable-auto-import) libraries
7899 lt_prog_compiler_pic='-DDLL_EXPORT'
7900 ;;
7901
7902 darwin* | rhapsody*)
7903 # PIC is the default on this platform
7904 # Common symbols not allowed in MH_DYLIB files
7905 lt_prog_compiler_pic='-fno-common'
7906 ;;
7907
7908 haiku*)
7909 # PIC is the default for Haiku.
7910 # The "-static" flag exists, but is broken.
7911 lt_prog_compiler_static=
7912 ;;
7913
7914 hpux*)
7915 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7916 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7917 # sets the default TLS model and affects inlining.
7918 case $host_cpu in
7919 hppa*64*)
7920 # +Z the default
7921 ;;
7922 *)
7923 lt_prog_compiler_pic='-fPIC'
7924 ;;
7925 esac
7926 ;;
7927
7928 interix[3-9]*)
7929 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7930 # Instead, we relocate shared libraries at runtime.
7931 ;;
7932
7933 msdosdjgpp*)
7934 # Just because we use GCC doesn't mean we suddenly get shared libraries
7935 # on systems that don't support them.
7936 lt_prog_compiler_can_build_shared=no
7937 enable_shared=no
7938 ;;
7939
7940 *nto* | *qnx*)
7941 # QNX uses GNU C++, but need to define -shared option too, otherwise
7942 # it will coredump.
7943 lt_prog_compiler_pic='-fPIC -shared'
7944 ;;
7945
7946 sysv4*MP*)
7947 if test -d /usr/nec; then
7948 lt_prog_compiler_pic=-Kconform_pic
7949 fi
7950 ;;
7951
7952 *)
7953 lt_prog_compiler_pic='-fPIC'
7954 ;;
7955 esac
7956
7957 case $cc_basename in
7958 nvcc*) # Cuda Compiler Driver 2.2
7959 lt_prog_compiler_wl='-Xlinker '
7960 lt_prog_compiler_pic='-Xcompiler -fPIC'
7961 ;;
7962 esac
7963 else
7964 # PORTME Check for flag to pass linker flags through the system compiler.
7965 case $host_os in
7966 aix*)
7967 lt_prog_compiler_wl='-Wl,'
7968 if test "$host_cpu" = ia64; then
7969 # AIX 5 now supports IA64 processor
7970 lt_prog_compiler_static='-Bstatic'
7971 else
7972 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7973 fi
7974 ;;
7975
7976 mingw* | cygwin* | pw32* | os2* | cegcc*)
7977 # This hack is so that the source file can tell whether it is being
7978 # built for inclusion in a dll (and should export symbols for example).
7979 lt_prog_compiler_pic='-DDLL_EXPORT'
7980 ;;
7981
7982 hpux9* | hpux10* | hpux11*)
7983 lt_prog_compiler_wl='-Wl,'
7984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7985 # not for PA HP-UX.
7986 case $host_cpu in
7987 hppa*64*|ia64*)
7988 # +Z the default
7989 ;;
7990 *)
7991 lt_prog_compiler_pic='+Z'
7992 ;;
7993 esac
7994 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7995 lt_prog_compiler_static='${wl}-a ${wl}archive'
7996 ;;
7997
7998 irix5* | irix6* | nonstopux*)
7999 lt_prog_compiler_wl='-Wl,'
8000 # PIC (with -KPIC) is the default.
8001 lt_prog_compiler_static='-non_shared'
8002 ;;
8003
8004 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8005 case $cc_basename in
8006 # old Intel for x86_64 which still supported -KPIC.
8007 ecc*)
8008 lt_prog_compiler_wl='-Wl,'
8009 lt_prog_compiler_pic='-KPIC'
8010 lt_prog_compiler_static='-static'
8011 ;;
8012 # icc used to be incompatible with GCC.
8013 # ICC 10 doesn't accept -KPIC any more.
8014 icc* | ifort*)
8015 lt_prog_compiler_wl='-Wl,'
8016 lt_prog_compiler_pic='-fPIC'
8017 lt_prog_compiler_static='-static'
8018 ;;
8019 # Lahey Fortran 8.1.
8020 lf95*)
8021 lt_prog_compiler_wl='-Wl,'
8022 lt_prog_compiler_pic='--shared'
8023 lt_prog_compiler_static='--static'
8024 ;;
8025 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8026 # Portland Group compilers (*not* the Pentium gcc compiler,
8027 # which looks to be a dead project)
8028 lt_prog_compiler_wl='-Wl,'
8029 lt_prog_compiler_pic='-fpic'
8030 lt_prog_compiler_static='-Bstatic'
8031 ;;
8032 ccc*)
8033 lt_prog_compiler_wl='-Wl,'
8034 # All Alpha code is PIC.
8035 lt_prog_compiler_static='-non_shared'
8036 ;;
8037 xl* | bgxl* | bgf* | mpixl*)
8038 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8039 lt_prog_compiler_wl='-Wl,'
8040 lt_prog_compiler_pic='-qpic'
8041 lt_prog_compiler_static='-qstaticlink'
8042 ;;
8043 *)
8044 case `$CC -V 2>&1 | sed 5q` in
8045 *Sun\ F* | *Sun*Fortran*)
8046 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8047 lt_prog_compiler_pic='-KPIC'
8048 lt_prog_compiler_static='-Bstatic'
8049 lt_prog_compiler_wl=''
8050 ;;
8051 *Sun\ C*)
8052 # Sun C 5.9
8053 lt_prog_compiler_pic='-KPIC'
8054 lt_prog_compiler_static='-Bstatic'
8055 lt_prog_compiler_wl='-Wl,'
8056 ;;
8057 esac
8058 ;;
8059 esac
8060 ;;
8061
8062 newsos6)
8063 lt_prog_compiler_pic='-KPIC'
8064 lt_prog_compiler_static='-Bstatic'
8065 ;;
8066
8067 *nto* | *qnx*)
8068 # QNX uses GNU C++, but need to define -shared option too, otherwise
8069 # it will coredump.
8070 lt_prog_compiler_pic='-fPIC -shared'
8071 ;;
8072
8073 osf3* | osf4* | osf5*)
8074 lt_prog_compiler_wl='-Wl,'
8075 # All OSF/1 code is PIC.
8076 lt_prog_compiler_static='-non_shared'
8077 ;;
8078
8079 rdos*)
8080 lt_prog_compiler_static='-non_shared'
8081 ;;
8082
8083 solaris*)
8084 lt_prog_compiler_pic='-KPIC'
8085 lt_prog_compiler_static='-Bstatic'
8086 case $cc_basename in
8087 f77* | f90* | f95*)
8088 lt_prog_compiler_wl='-Qoption ld ';;
8089 *)
8090 lt_prog_compiler_wl='-Wl,';;
8091 esac
8092 ;;
8093
8094 sunos4*)
8095 lt_prog_compiler_wl='-Qoption ld '
8096 lt_prog_compiler_pic='-PIC'
8097 lt_prog_compiler_static='-Bstatic'
8098 ;;
f0569246 8099
6bb11ab3
L
8100 sysv4 | sysv4.2uw2* | sysv4.3*)
8101 lt_prog_compiler_wl='-Wl,'
8102 lt_prog_compiler_pic='-KPIC'
8103 lt_prog_compiler_static='-Bstatic'
8104 ;;
f0569246 8105
6bb11ab3
L
8106 sysv4*MP*)
8107 if test -d /usr/nec ;then
8108 lt_prog_compiler_pic='-Kconform_pic'
8109 lt_prog_compiler_static='-Bstatic'
8110 fi
8111 ;;
f0569246 8112
6bb11ab3
L
8113 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8114 lt_prog_compiler_wl='-Wl,'
8115 lt_prog_compiler_pic='-KPIC'
8116 lt_prog_compiler_static='-Bstatic'
8117 ;;
8118
8119 unicos*)
8120 lt_prog_compiler_wl='-Wl,'
8121 lt_prog_compiler_can_build_shared=no
8122 ;;
8123
8124 uts4*)
8125 lt_prog_compiler_pic='-pic'
8126 lt_prog_compiler_static='-Bstatic'
8127 ;;
8128
8129 *)
8130 lt_prog_compiler_can_build_shared=no
8131 ;;
8132 esac
8133 fi
8134
8135case $host_os in
8136 # For platforms which do not support PIC, -DPIC is meaningless:
8137 *djgpp*)
8138 lt_prog_compiler_pic=
8139 ;;
8140 *)
8141 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8142 ;;
81ecdfbb 8143esac
6bb11ab3
L
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8145$as_echo "$lt_prog_compiler_pic" >&6; }
8146
8147
8148
8149
8150
8151
8152#
8153# Check to make sure the PIC flag actually works.
8154#
8155if test -n "$lt_prog_compiler_pic"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8157$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
d0ac1c44 8158if ${lt_cv_prog_compiler_pic_works+:} false; then :
6bb11ab3 8159 $as_echo_n "(cached) " >&6
b7026657 8160else
6bb11ab3
L
8161 lt_cv_prog_compiler_pic_works=no
8162 ac_outfile=conftest.$ac_objext
8163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8164 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8165 # Insert the option either (1) after the last *FLAGS variable, or
8166 # (2) before a word containing "conftest.", or (3) at the end.
8167 # Note that $ac_compile itself does not contain backslashes and begins
8168 # with a dollar sign (not a hyphen), so the echo should work correctly.
8169 # The option is referenced via a variable to avoid confusing sed.
8170 lt_compile=`echo "$ac_compile" | $SED \
8171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8173 -e 's:$: $lt_compiler_flag:'`
8174 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8175 (eval "$lt_compile" 2>conftest.err)
8176 ac_status=$?
8177 cat conftest.err >&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 if (exit $ac_status) && test -s "$ac_outfile"; then
8180 # The compiler can only warn and ignore the option if not recognized
8181 # So say no if there are warnings other than the usual output.
8182 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8184 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8185 lt_cv_prog_compiler_pic_works=yes
8186 fi
8187 fi
8188 $RM conftest*
b7026657 8189
b7026657 8190fi
6bb11ab3
L
8191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8192$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8193
8194if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8195 case $lt_prog_compiler_pic in
8196 "" | " "*) ;;
8197 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8198 esac
8199else
8200 lt_prog_compiler_pic=
8201 lt_prog_compiler_can_build_shared=no
f0569246 8202fi
6bb11ab3
L
8203
8204fi
8205
8206
8207
8208
8209
8210
8211#
8212# Check to make sure the static flag actually works.
8213#
8214wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8216$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
d0ac1c44 8217if ${lt_cv_prog_compiler_static_works+:} false; then :
81ecdfbb 8218 $as_echo_n "(cached) " >&6
f0569246 8219else
6bb11ab3
L
8220 lt_cv_prog_compiler_static_works=no
8221 save_LDFLAGS="$LDFLAGS"
8222 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8223 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8224 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8225 # The linker can only warn and ignore the option if not recognized
8226 # So say no if there are warnings
8227 if test -s conftest.err; then
8228 # Append any errors to the config.log.
8229 cat conftest.err 1>&5
8230 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8231 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8232 if diff conftest.exp conftest.er2 >/dev/null; then
8233 lt_cv_prog_compiler_static_works=yes
8234 fi
8235 else
8236 lt_cv_prog_compiler_static_works=yes
8237 fi
8238 fi
8239 $RM -r conftest*
8240 LDFLAGS="$save_LDFLAGS"
f0569246 8241
6bb11ab3
L
8242fi
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8244$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
f0569246 8245
6bb11ab3
L
8246if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8247 :
f0569246 8248else
6bb11ab3 8249 lt_prog_compiler_static=
f0569246 8250fi
b7026657 8251
6bb11ab3
L
8252
8253
8254
8255
8256
8257
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8259$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8260if ${lt_cv_prog_compiler_c_o+:} false; then :
6bb11ab3 8261 $as_echo_n "(cached) " >&6
81ecdfbb 8262else
6bb11ab3
L
8263 lt_cv_prog_compiler_c_o=no
8264 $RM -r conftest 2>/dev/null
8265 mkdir conftest
8266 cd conftest
8267 mkdir out
8268 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8269
8270 lt_compiler_flag="-o out/conftest2.$ac_objext"
8271 # Insert the option either (1) after the last *FLAGS variable, or
8272 # (2) before a word containing "conftest.", or (3) at the end.
8273 # Note that $ac_compile itself does not contain backslashes and begins
8274 # with a dollar sign (not a hyphen), so the echo should work correctly.
8275 lt_compile=`echo "$ac_compile" | $SED \
8276 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8277 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8278 -e 's:$: $lt_compiler_flag:'`
8279 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8280 (eval "$lt_compile" 2>out/conftest.err)
8281 ac_status=$?
8282 cat out/conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8285 then
8286 # The compiler can only warn and ignore the option if not recognized
8287 # So say no if there are warnings
8288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8289 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8290 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8291 lt_cv_prog_compiler_c_o=yes
8292 fi
8293 fi
8294 chmod u+w . 2>&5
8295 $RM conftest*
8296 # SGI C++ compiler will create directory out/ii_files/ for
8297 # template instantiation
8298 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8299 $RM out/* && rmdir out
8300 cd ..
8301 $RM -r conftest
8302 $RM conftest*
8303
81ecdfbb 8304fi
6bb11ab3
L
8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8306$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8307
8308
8309
8310
8311
8312
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8314$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
d0ac1c44 8315if ${lt_cv_prog_compiler_c_o+:} false; then :
81ecdfbb
RW
8316 $as_echo_n "(cached) " >&6
8317else
6bb11ab3
L
8318 lt_cv_prog_compiler_c_o=no
8319 $RM -r conftest 2>/dev/null
8320 mkdir conftest
8321 cd conftest
8322 mkdir out
8323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8324
8325 lt_compiler_flag="-o out/conftest2.$ac_objext"
8326 # Insert the option either (1) after the last *FLAGS variable, or
8327 # (2) before a word containing "conftest.", or (3) at the end.
8328 # Note that $ac_compile itself does not contain backslashes and begins
8329 # with a dollar sign (not a hyphen), so the echo should work correctly.
8330 lt_compile=`echo "$ac_compile" | $SED \
8331 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8332 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8333 -e 's:$: $lt_compiler_flag:'`
8334 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8335 (eval "$lt_compile" 2>out/conftest.err)
8336 ac_status=$?
8337 cat out/conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8340 then
8341 # The compiler can only warn and ignore the option if not recognized
8342 # So say no if there are warnings
8343 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8344 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8345 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8346 lt_cv_prog_compiler_c_o=yes
8347 fi
8348 fi
8349 chmod u+w . 2>&5
8350 $RM conftest*
8351 # SGI C++ compiler will create directory out/ii_files/ for
8352 # template instantiation
8353 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8354 $RM out/* && rmdir out
8355 cd ..
8356 $RM -r conftest
8357 $RM conftest*
8358
8359fi
8360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8361$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8362
8363
8364
8365
8366hard_links="nottested"
8367if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8368 # do not overwrite the value of need_locks provided by the user
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8370$as_echo_n "checking if we can lock with hard links... " >&6; }
8371 hard_links=yes
8372 $RM conftest*
8373 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8374 touch conftest.a
8375 ln conftest.a conftest.b 2>&5 || hard_links=no
8376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8378$as_echo "$hard_links" >&6; }
8379 if test "$hard_links" = no; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8381$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8382 need_locks=warn
8383 fi
8384else
8385 need_locks=no
8386fi
8387
8388
8389
8390
8391
8392
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8394$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8395
8396 runpath_var=
8397 allow_undefined_flag=
8398 always_export_symbols=no
8399 archive_cmds=
8400 archive_expsym_cmds=
8401 compiler_needs_object=no
8402 enable_shared_with_static_runtimes=no
8403 export_dynamic_flag_spec=
8404 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8405 hardcode_automatic=no
8406 hardcode_direct=no
8407 hardcode_direct_absolute=no
8408 hardcode_libdir_flag_spec=
8409 hardcode_libdir_flag_spec_ld=
8410 hardcode_libdir_separator=
8411 hardcode_minus_L=no
8412 hardcode_shlibpath_var=unsupported
8413 inherit_rpath=no
8414 link_all_deplibs=unknown
8415 module_cmds=
8416 module_expsym_cmds=
8417 old_archive_from_new_cmds=
8418 old_archive_from_expsyms_cmds=
8419 thread_safe_flag_spec=
8420 whole_archive_flag_spec=
8421 # include_expsyms should be a list of space-separated symbols to be *always*
8422 # included in the symbol list
8423 include_expsyms=
8424 # exclude_expsyms can be an extended regexp of symbols to exclude
8425 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8426 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8427 # as well as any symbol that contains `d'.
8428 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8429 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8430 # platforms (ab)use it in PIC code, but their linkers get confused if
8431 # the symbol is explicitly referenced. Since portable code cannot
8432 # rely on this symbol name, it's probably fine to never include it in
8433 # preloaded symbol tables.
8434 # Exclude shared library initialization/finalization symbols.
8435 extract_expsyms_cmds=
8436
8437 case $host_os in
8438 cygwin* | mingw* | pw32* | cegcc*)
8439 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8440 # When not using gcc, we currently assume that we are using
8441 # Microsoft Visual C++.
8442 if test "$GCC" != yes; then
8443 with_gnu_ld=no
8444 fi
8445 ;;
8446 interix*)
8447 # we just hope/assume this is gcc and not c89 (= MSVC++)
8448 with_gnu_ld=yes
8449 ;;
8450 openbsd*)
8451 with_gnu_ld=no
8452 ;;
8453 esac
f0569246 8454
6bb11ab3
L
8455 ld_shlibs=yes
8456
8457 # On some targets, GNU ld is compatible enough with the native linker
8458 # that we're better off using the native interface for both.
8459 lt_use_gnu_ld_interface=no
8460 if test "$with_gnu_ld" = yes; then
8461 case $host_os in
8462 aix*)
8463 # The AIX port of GNU ld has always aspired to compatibility
8464 # with the native linker. However, as the warning in the GNU ld
8465 # block says, versions before 2.19.5* couldn't really create working
8466 # shared libraries, regardless of the interface used.
8467 case `$LD -v 2>&1` in
8468 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8469 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8470 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8471 *)
8472 lt_use_gnu_ld_interface=yes
8473 ;;
8474 esac
8475 ;;
8476 *)
8477 lt_use_gnu_ld_interface=yes
8478 ;;
8479 esac
8480 fi
f0569246 8481
6bb11ab3
L
8482 if test "$lt_use_gnu_ld_interface" = yes; then
8483 # If archive_cmds runs LD, not CC, wlarc should be empty
8484 wlarc='${wl}'
8485
8486 # Set some defaults for GNU ld with shared library support. These
8487 # are reset later if shared libraries are not supported. Putting them
8488 # here allows them to be overridden if necessary.
8489 runpath_var=LD_RUN_PATH
8490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8491 export_dynamic_flag_spec='${wl}--export-dynamic'
8492 # ancient GNU ld didn't support --whole-archive et. al.
8493 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8494 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8495 else
8496 whole_archive_flag_spec=
8497 fi
8498 supports_anon_versioning=no
8499 case `$LD -v 2>&1` in
8500 *GNU\ gold*) supports_anon_versioning=yes ;;
8501 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8502 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8503 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8504 *\ 2.11.*) ;; # other 2.11 versions
8505 *) supports_anon_versioning=yes ;;
8506 esac
8507
8508 # See if GNU ld supports shared libraries.
8509 case $host_os in
8510 aix[3-9]*)
8511 # On AIX/PPC, the GNU linker is very broken
8512 if test "$host_cpu" != ia64; then
8513 ld_shlibs=no
8514 cat <<_LT_EOF 1>&2
8515
8516*** Warning: the GNU linker, at least up to release 2.19, is reported
8517*** to be unable to reliably create shared libraries on AIX.
8518*** Therefore, libtool is disabling shared libraries support. If you
8519*** really care for shared libraries, you may want to install binutils
8520*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8521*** You will then need to restart the configuration process.
8522
8523_LT_EOF
8524 fi
8525 ;;
8526
8527 amigaos*)
8528 case $host_cpu in
8529 powerpc)
8530 # see comment about AmigaOS4 .so support
8531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8532 archive_expsym_cmds=''
8533 ;;
8534 m68k)
8535 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)'
8536 hardcode_libdir_flag_spec='-L$libdir'
8537 hardcode_minus_L=yes
8538 ;;
8539 esac
8540 ;;
8541
8542 beos*)
8543 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8544 allow_undefined_flag=unsupported
8545 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8546 # support --undefined. This deserves some investigation. FIXME
8547 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548 else
8549 ld_shlibs=no
8550 fi
8551 ;;
8552
8553 cygwin* | mingw* | pw32* | cegcc*)
8554 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8555 # as there is no search path for DLLs.
8556 hardcode_libdir_flag_spec='-L$libdir'
8557 export_dynamic_flag_spec='${wl}--export-all-symbols'
8558 allow_undefined_flag=unsupported
8559 always_export_symbols=no
8560 enable_shared_with_static_runtimes=yes
8561 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8562
8563 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8564 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8565 # If the export-symbols file already is a .def file (1st line
8566 # is EXPORTS), use it as is; otherwise, prepend...
8567 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8568 cp $export_symbols $output_objdir/$soname.def;
8569 else
8570 echo EXPORTS > $output_objdir/$soname.def;
8571 cat $export_symbols >> $output_objdir/$soname.def;
8572 fi~
8573 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8574 else
8575 ld_shlibs=no
8576 fi
8577 ;;
8578
8579 haiku*)
8580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8581 link_all_deplibs=yes
8582 ;;
8583
8584 interix[3-9]*)
8585 hardcode_direct=no
8586 hardcode_shlibpath_var=no
8587 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8588 export_dynamic_flag_spec='${wl}-E'
8589 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8590 # Instead, shared libraries are loaded at an image base (0x10000000 by
8591 # default) and relocated if they conflict, which is a slow very memory
8592 # consuming and fragmenting process. To avoid this, we pick a random,
8593 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8594 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8595 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8596 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'
8597 ;;
8598
8599 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8600 tmp_diet=no
8601 if test "$host_os" = linux-dietlibc; then
8602 case $cc_basename in
8603 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8604 esac
8605 fi
8606 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8607 && test "$tmp_diet" = no
8608 then
5cddc23a 8609 tmp_addflag=' $pic_flag'
6bb11ab3
L
8610 tmp_sharedflag='-shared'
8611 case $cc_basename,$host_cpu in
8612 pgcc*) # Portland Group C compiler
8613 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'
8614 tmp_addflag=' $pic_flag'
8615 ;;
8616 pgf77* | pgf90* | pgf95* | pgfortran*)
8617 # Portland Group f77 and f90 compilers
8618 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'
8619 tmp_addflag=' $pic_flag -Mnomain' ;;
8620 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8621 tmp_addflag=' -i_dynamic' ;;
8622 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8623 tmp_addflag=' -i_dynamic -nofor_main' ;;
8624 ifc* | ifort*) # Intel Fortran compiler
8625 tmp_addflag=' -nofor_main' ;;
8626 lf95*) # Lahey Fortran 8.1
8627 whole_archive_flag_spec=
8628 tmp_sharedflag='--shared' ;;
8629 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8630 tmp_sharedflag='-qmkshrobj'
8631 tmp_addflag= ;;
8632 nvcc*) # Cuda Compiler Driver 2.2
8633 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'
8634 compiler_needs_object=yes
8635 ;;
8636 esac
8637 case `$CC -V 2>&1 | sed 5q` in
8638 *Sun\ C*) # Sun C 5.9
8639 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'
8640 compiler_needs_object=yes
8641 tmp_sharedflag='-G' ;;
8642 *Sun\ F*) # Sun Fortran 8.3
8643 tmp_sharedflag='-G' ;;
8644 esac
8645 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8646
8647 if test "x$supports_anon_versioning" = xyes; then
8648 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8650 echo "local: *; };" >> $output_objdir/$libname.ver~
8651 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8652 fi
8653
8654 case $cc_basename in
8655 xlf* | bgf* | bgxlf* | mpixlf*)
8656 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8657 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8658 hardcode_libdir_flag_spec=
8659 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8660 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8661 if test "x$supports_anon_versioning" = xyes; then
8662 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8663 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8664 echo "local: *; };" >> $output_objdir/$libname.ver~
8665 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8666 fi
8667 ;;
8668 esac
8669 else
8670 ld_shlibs=no
8671 fi
8672 ;;
8673
8674 netbsd*)
8675 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8676 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8677 wlarc=
8678 else
8679 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8680 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8681 fi
8682 ;;
8683
8684 solaris*)
8685 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8686 ld_shlibs=no
8687 cat <<_LT_EOF 1>&2
8688
8689*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8690*** create shared libraries on Solaris systems. Therefore, libtool
8691*** is disabling shared libraries support. We urge you to upgrade GNU
8692*** binutils to release 2.9.1 or newer. Another option is to modify
8693*** your PATH or compiler configuration so that the native linker is
8694*** used, and then restart.
8695
8696_LT_EOF
8697 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8698 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8699 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8700 else
8701 ld_shlibs=no
8702 fi
8703 ;;
8704
8705 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8706 case `$LD -v 2>&1` in
8707 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8708 ld_shlibs=no
8709 cat <<_LT_EOF 1>&2
8710
8711*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8712*** reliably create shared libraries on SCO systems. Therefore, libtool
8713*** is disabling shared libraries support. We urge you to upgrade GNU
8714*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8715*** your PATH or compiler configuration so that the native linker is
8716*** used, and then restart.
8717
8718_LT_EOF
8719 ;;
8720 *)
8721 # For security reasons, it is highly recommended that you always
8722 # use absolute paths for naming shared libraries, and exclude the
8723 # DT_RUNPATH tag from executables and libraries. But doing so
8724 # requires that you compile everything twice, which is a pain.
8725 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8726 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8729 else
8730 ld_shlibs=no
8731 fi
8732 ;;
8733 esac
8734 ;;
8735
8736 sunos4*)
8737 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8738 wlarc=
8739 hardcode_direct=yes
8740 hardcode_shlibpath_var=no
8741 ;;
8742
8743 *)
8744 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8747 else
8748 ld_shlibs=no
8749 fi
8750 ;;
8751 esac
8752
8753 if test "$ld_shlibs" = no; then
8754 runpath_var=
8755 hardcode_libdir_flag_spec=
8756 export_dynamic_flag_spec=
8757 whole_archive_flag_spec=
8758 fi
8759 else
8760 # PORTME fill in a description of your system's linker (not GNU ld)
8761 case $host_os in
8762 aix3*)
8763 allow_undefined_flag=unsupported
8764 always_export_symbols=yes
8765 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'
8766 # Note: this linker hardcodes the directories in LIBPATH if there
8767 # are no directories specified by -L.
8768 hardcode_minus_L=yes
8769 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8770 # Neither direct hardcoding nor static linking is supported with a
8771 # broken collect2.
8772 hardcode_direct=unsupported
8773 fi
8774 ;;
8775
8776 aix[4-9]*)
8777 if test "$host_cpu" = ia64; then
8778 # On IA64, the linker does run time linking by default, so we don't
8779 # have to do anything special.
8780 aix_use_runtimelinking=no
8781 exp_sym_flag='-Bexport'
8782 no_entry_flag=""
8783 else
8784 # If we're using GNU nm, then we don't want the "-C" option.
8785 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8786 # Also, AIX nm treats weak defined symbols like other global
8787 # defined symbols, whereas GNU nm marks them as "W".
8788 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8789 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'
8790 else
5c887dd5 8791 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'
6bb11ab3
L
8792 fi
8793 aix_use_runtimelinking=no
8794
8795 # Test if we are trying to use run time linking or normal
8796 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8797 # need to do runtime linking.
8798 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8799 for ld_flag in $LDFLAGS; do
8800 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8801 aix_use_runtimelinking=yes
8802 break
8803 fi
8804 done
8805 ;;
8806 esac
8807
8808 exp_sym_flag='-bexport'
8809 no_entry_flag='-bnoentry'
8810 fi
8811
8812 # When large executables or shared objects are built, AIX ld can
8813 # have problems creating the table of contents. If linking a library
8814 # or program results in "error TOC overflow" add -mminimal-toc to
8815 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8816 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8817
8818 archive_cmds=''
8819 hardcode_direct=yes
8820 hardcode_direct_absolute=yes
8821 hardcode_libdir_separator=':'
8822 link_all_deplibs=yes
8823 file_list_spec='${wl}-f,'
8824
8825 if test "$GCC" = yes; then
8826 case $host_os in aix4.[012]|aix4.[012].*)
8827 # We only want to do this on AIX 4.2 and lower, the check
8828 # below for broken collect2 doesn't work under 4.3+
8829 collect2name=`${CC} -print-prog-name=collect2`
8830 if test -f "$collect2name" &&
8831 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8832 then
8833 # We have reworked collect2
8834 :
8835 else
8836 # We have old collect2
8837 hardcode_direct=unsupported
8838 # It fails to find uninstalled libraries when the uninstalled
8839 # path is not listed in the libpath. Setting hardcode_minus_L
8840 # to unsupported forces relinking
8841 hardcode_minus_L=yes
8842 hardcode_libdir_flag_spec='-L$libdir'
8843 hardcode_libdir_separator=
8844 fi
8845 ;;
8846 esac
8847 shared_flag='-shared'
8848 if test "$aix_use_runtimelinking" = yes; then
8849 shared_flag="$shared_flag "'${wl}-G'
8850 fi
8851 else
8852 # not using gcc
8853 if test "$host_cpu" = ia64; then
8854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8855 # chokes on -Wl,-G. The following line is correct:
8856 shared_flag='-G'
8857 else
8858 if test "$aix_use_runtimelinking" = yes; then
8859 shared_flag='${wl}-G'
8860 else
8861 shared_flag='${wl}-bM:SRE'
8862 fi
8863 fi
8864 fi
8865
8866 export_dynamic_flag_spec='${wl}-bexpall'
8867 # It seems that -bexpall does not export symbols beginning with
8868 # underscore (_), so it is better to generate a list of symbols to export.
8869 always_export_symbols=yes
8870 if test "$aix_use_runtimelinking" = yes; then
8871 # Warning - without using the other runtime loading flags (-brtl),
8872 # -berok will link without error, but may produce a broken library.
8873 allow_undefined_flag='-berok'
8874 # Determine the default libpath from the value encoded in an
8875 # empty executable.
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81ecdfbb
RW
8877/* end confdefs.h. */
8878
8879int
8880main ()
8881{
8882
8883 ;
8884 return 0;
8885}
8886_ACEOF
6bb11ab3 8887if ac_fn_c_try_link "$LINENO"; then :
81ecdfbb 8888
6bb11ab3
L
8889lt_aix_libpath_sed='
8890 /Import File Strings/,/^$/ {
8891 /^0/ {
8892 s/^0 *\(.*\)$/\1/
8893 p
8894 }
8895 }'
8896aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8897# Check for a 64-bit object if we didn't find anything.
8898if test -z "$aix_libpath"; then
8899 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8900fi
8901fi
8902rm -f core conftest.err conftest.$ac_objext \
8903 conftest$ac_exeext conftest.$ac_ext
8904if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8905
8906 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8907 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"
8908 else
8909 if test "$host_cpu" = ia64; then
8910 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8911 allow_undefined_flag="-z nodefs"
8912 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"
8913 else
8914 # Determine the default libpath from the value encoded in an
8915 # empty executable.
81ecdfbb
RW
8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917/* end confdefs.h. */
8918
8919int
8920main ()
8921{
b7026657 8922
81ecdfbb
RW
8923 ;
8924 return 0;
8925}
8926_ACEOF
6bb11ab3
L
8927if ac_fn_c_try_link "$LINENO"; then :
8928
8929lt_aix_libpath_sed='
8930 /Import File Strings/,/^$/ {
8931 /^0/ {
8932 s/^0 *\(.*\)$/\1/
8933 p
8934 }
8935 }'
8936aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8937# Check for a 64-bit object if we didn't find anything.
8938if test -z "$aix_libpath"; then
8939 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
f0569246 8940fi
81ecdfbb 8941fi
6bb11ab3
L
8942rm -f core conftest.err conftest.$ac_objext \
8943 conftest$ac_exeext conftest.$ac_ext
8944if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8945
8946 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8947 # Warning - without using the other run time loading flags,
8948 # -berok will link without error, but may produce a broken library.
8949 no_undefined_flag=' ${wl}-bernotok'
8950 allow_undefined_flag=' ${wl}-berok'
8951 if test "$with_gnu_ld" = yes; then
8952 # We only use this code for GNU lds that support --whole-archive.
8953 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8954 else
8955 # Exported symbols can be pulled into shared objects from archives
8956 whole_archive_flag_spec='$convenience'
8957 fi
8958 archive_cmds_need_lc=yes
8959 # This is similar to how AIX traditionally builds its shared libraries.
8960 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'
8961 fi
8962 fi
8963 ;;
8964
8965 amigaos*)
8966 case $host_cpu in
8967 powerpc)
8968 # see comment about AmigaOS4 .so support
8969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970 archive_expsym_cmds=''
8971 ;;
8972 m68k)
8973 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)'
8974 hardcode_libdir_flag_spec='-L$libdir'
8975 hardcode_minus_L=yes
8976 ;;
8977 esac
8978 ;;
8979
8980 bsdi[45]*)
8981 export_dynamic_flag_spec=-rdynamic
8982 ;;
8983
8984 cygwin* | mingw* | pw32* | cegcc*)
8985 # When not using gcc, we currently assume that we are using
8986 # Microsoft Visual C++.
8987 # hardcode_libdir_flag_spec is actually meaningless, as there is
8988 # no search path for DLLs.
8989 hardcode_libdir_flag_spec=' '
8990 allow_undefined_flag=unsupported
8991 # Tell ltmain to make .lib files, not .a files.
8992 libext=lib
8993 # Tell ltmain to make .dll files, not .so files.
8994 shrext_cmds=".dll"
8995 # FIXME: Setting linknames here is a bad hack.
8996 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8997 # The linker will automatically build a .lib file if we build a DLL.
8998 old_archive_from_new_cmds='true'
8999 # FIXME: Should let the user specify the lib program.
9000 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9001 fix_srcfile_path='`cygpath -w "$srcfile"`'
9002 enable_shared_with_static_runtimes=yes
9003 ;;
9004
9005 darwin* | rhapsody*)
9006
9007
9008 archive_cmds_need_lc=no
9009 hardcode_direct=no
9010 hardcode_automatic=yes
9011 hardcode_shlibpath_var=unsupported
9012 if test "$lt_cv_ld_force_load" = "yes"; then
9013 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\"`'
f0569246 9014 else
6bb11ab3 9015 whole_archive_flag_spec=''
f0569246 9016 fi
6bb11ab3
L
9017 link_all_deplibs=yes
9018 allow_undefined_flag="$_lt_dar_allow_undefined"
9019 case $cc_basename in
9020 ifort*) _lt_dar_can_shared=yes ;;
9021 *) _lt_dar_can_shared=$GCC ;;
9022 esac
9023 if test "$_lt_dar_can_shared" = "yes"; then
9024 output_verbose_link_cmd=func_echo_all
9025 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9026 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9027 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}"
9028 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}"
9029
f0569246 9030 else
6bb11ab3 9031 ld_shlibs=no
f0569246 9032 fi
6bb11ab3
L
9033
9034 ;;
9035
9036 dgux*)
9037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038 hardcode_libdir_flag_spec='-L$libdir'
9039 hardcode_shlibpath_var=no
9040 ;;
9041
9042 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9043 # support. Future versions do this automatically, but an explicit c++rt0.o
9044 # does not break anything, and helps significantly (at the cost of a little
9045 # extra space).
9046 freebsd2.2*)
9047 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9048 hardcode_libdir_flag_spec='-R$libdir'
9049 hardcode_direct=yes
9050 hardcode_shlibpath_var=no
9051 ;;
9052
9053 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9054 freebsd2.*)
9055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9056 hardcode_direct=yes
9057 hardcode_minus_L=yes
9058 hardcode_shlibpath_var=no
9059 ;;
9060
9061 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9062 freebsd* | dragonfly*)
9063 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9064 hardcode_libdir_flag_spec='-R$libdir'
9065 hardcode_direct=yes
9066 hardcode_shlibpath_var=no
9067 ;;
9068
9069 hpux9*)
9070 if test "$GCC" = yes; then
9071 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'
9072 else
9073 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'
9074 fi
9075 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9076 hardcode_libdir_separator=:
9077 hardcode_direct=yes
9078
9079 # hardcode_minus_L: Not really in the search PATH,
9080 # but as the default location of the library.
9081 hardcode_minus_L=yes
9082 export_dynamic_flag_spec='${wl}-E'
9083 ;;
9084
9085 hpux10*)
9086 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9087 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9088 else
9089 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9090 fi
9091 if test "$with_gnu_ld" = no; then
9092 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9093 hardcode_libdir_flag_spec_ld='+b $libdir'
9094 hardcode_libdir_separator=:
9095 hardcode_direct=yes
9096 hardcode_direct_absolute=yes
9097 export_dynamic_flag_spec='${wl}-E'
9098 # hardcode_minus_L: Not really in the search PATH,
9099 # but as the default location of the library.
9100 hardcode_minus_L=yes
9101 fi
9102 ;;
9103
9104 hpux11*)
9105 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9106 case $host_cpu in
9107 hppa*64*)
9108 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9109 ;;
9110 ia64*)
9111 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9112 ;;
9113 *)
9114 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9115 ;;
9116 esac
9117 else
9118 case $host_cpu in
9119 hppa*64*)
9120 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 ;;
9122 ia64*)
9123 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9124 ;;
9125 *)
9126
9127 # Older versions of the 11.00 compiler do not understand -b yet
9128 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9130$as_echo_n "checking if $CC understands -b... " >&6; }
d0ac1c44 9131if ${lt_cv_prog_compiler__b+:} false; then :
81ecdfbb 9132 $as_echo_n "(cached) " >&6
f0569246 9133else
6bb11ab3
L
9134 lt_cv_prog_compiler__b=no
9135 save_LDFLAGS="$LDFLAGS"
9136 LDFLAGS="$LDFLAGS -b"
9137 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9138 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9139 # The linker can only warn and ignore the option if not recognized
9140 # So say no if there are warnings
9141 if test -s conftest.err; then
9142 # Append any errors to the config.log.
9143 cat conftest.err 1>&5
9144 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9146 if diff conftest.exp conftest.er2 >/dev/null; then
9147 lt_cv_prog_compiler__b=yes
9148 fi
9149 else
9150 lt_cv_prog_compiler__b=yes
9151 fi
9152 fi
9153 $RM -r conftest*
9154 LDFLAGS="$save_LDFLAGS"
f0569246 9155
6bb11ab3
L
9156fi
9157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9158$as_echo "$lt_cv_prog_compiler__b" >&6; }
f0569246 9159
6bb11ab3
L
9160if test x"$lt_cv_prog_compiler__b" = xyes; then
9161 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9162else
9163 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9164fi
81ecdfbb 9165
6bb11ab3
L
9166 ;;
9167 esac
9168 fi
9169 if test "$with_gnu_ld" = no; then
9170 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9171 hardcode_libdir_separator=:
9172
9173 case $host_cpu in
9174 hppa*64*|ia64*)
9175 hardcode_direct=no
9176 hardcode_shlibpath_var=no
9177 ;;
9178 *)
9179 hardcode_direct=yes
9180 hardcode_direct_absolute=yes
9181 export_dynamic_flag_spec='${wl}-E'
9182
9183 # hardcode_minus_L: Not really in the search PATH,
9184 # but as the default location of the library.
9185 hardcode_minus_L=yes
9186 ;;
9187 esac
9188 fi
9189 ;;
9190
9191 irix5* | irix6* | nonstopux*)
9192 if test "$GCC" = yes; then
9193 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'
9194 # Try to use the -exported_symbol ld option, if it does not
9195 # work, assume that -exports_file does not work either and
9196 # implicitly export all symbols.
9197 save_LDFLAGS="$LDFLAGS"
9198 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200/* end confdefs.h. */
9201int foo(void) {}
b7026657 9202_ACEOF
6bb11ab3
L
9203if ac_fn_c_try_link "$LINENO"; then :
9204 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'
c906108c 9205
f0569246 9206fi
6bb11ab3
L
9207rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext conftest.$ac_ext
9209 LDFLAGS="$save_LDFLAGS"
9210 else
9211 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'
9212 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'
9213 fi
9214 archive_cmds_need_lc='no'
9215 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9216 hardcode_libdir_separator=:
9217 inherit_rpath=yes
9218 link_all_deplibs=yes
9219 ;;
9220
9221 netbsd*)
9222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9223 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9224 else
9225 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9226 fi
9227 hardcode_libdir_flag_spec='-R$libdir'
9228 hardcode_direct=yes
9229 hardcode_shlibpath_var=no
9230 ;;
9231
9232 newsos6)
9233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9234 hardcode_direct=yes
9235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236 hardcode_libdir_separator=:
9237 hardcode_shlibpath_var=no
9238 ;;
9239
9240 *nto* | *qnx*)
9241 ;;
9242
9243 openbsd*)
9244 if test -f /usr/libexec/ld.so; then
9245 hardcode_direct=yes
9246 hardcode_shlibpath_var=no
9247 hardcode_direct_absolute=yes
9248 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9249 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9250 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9251 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9252 export_dynamic_flag_spec='${wl}-E'
9253 else
9254 case $host_os in
9255 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9256 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9257 hardcode_libdir_flag_spec='-R$libdir'
9258 ;;
9259 *)
9260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9261 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9262 ;;
9263 esac
9264 fi
9265 else
9266 ld_shlibs=no
9267 fi
9268 ;;
9269
9270 os2*)
9271 hardcode_libdir_flag_spec='-L$libdir'
9272 hardcode_minus_L=yes
9273 allow_undefined_flag=unsupported
9274 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'
9275 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9276 ;;
9277
9278 osf3*)
9279 if test "$GCC" = yes; then
9280 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9281 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'
9282 else
9283 allow_undefined_flag=' -expect_unresolved \*'
9284 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'
9285 fi
9286 archive_cmds_need_lc='no'
9287 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9288 hardcode_libdir_separator=:
9289 ;;
9290
9291 osf4* | osf5*) # as osf3* with the addition of -msym flag
9292 if test "$GCC" = yes; then
9293 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9294 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'
9295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296 else
9297 allow_undefined_flag=' -expect_unresolved \*'
9298 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'
9299 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~
9300 $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'
9301
9302 # Both c and cxx compiler support -rpath directly
9303 hardcode_libdir_flag_spec='-rpath $libdir'
9304 fi
9305 archive_cmds_need_lc='no'
9306 hardcode_libdir_separator=:
9307 ;;
9308
9309 solaris*)
9310 no_undefined_flag=' -z defs'
9311 if test "$GCC" = yes; then
9312 wlarc='${wl}'
9313 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9315 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9316 else
9317 case `$CC -V 2>&1` in
9318 *"Compilers 5.0"*)
9319 wlarc=''
9320 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9322 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9323 ;;
9324 *)
9325 wlarc='${wl}'
9326 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9328 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9329 ;;
9330 esac
9331 fi
9332 hardcode_libdir_flag_spec='-R$libdir'
9333 hardcode_shlibpath_var=no
9334 case $host_os in
9335 solaris2.[0-5] | solaris2.[0-5].*) ;;
9336 *)
9337 # The compiler driver will combine and reorder linker options,
9338 # but understands `-z linker_flag'. GCC discards it without `$wl',
9339 # but is careful enough not to reorder.
9340 # Supported since Solaris 2.6 (maybe 2.5.1?)
9341 if test "$GCC" = yes; then
9342 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9343 else
9344 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9345 fi
9346 ;;
9347 esac
9348 link_all_deplibs=yes
9349 ;;
9350
9351 sunos4*)
9352 if test "x$host_vendor" = xsequent; then
9353 # Use $CC to link under sequent, because it throws in some extra .o
9354 # files that make .init and .fini sections work.
9355 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9356 else
9357 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9358 fi
9359 hardcode_libdir_flag_spec='-L$libdir'
9360 hardcode_direct=yes
9361 hardcode_minus_L=yes
9362 hardcode_shlibpath_var=no
9363 ;;
9364
9365 sysv4)
9366 case $host_vendor in
9367 sni)
9368 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9369 hardcode_direct=yes # is this really true???
9370 ;;
9371 siemens)
9372 ## LD is ld it makes a PLAMLIB
9373 ## CC just makes a GrossModule.
9374 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9375 reload_cmds='$CC -r -o $output$reload_objs'
9376 hardcode_direct=no
9377 ;;
9378 motorola)
9379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9381 ;;
9382 esac
9383 runpath_var='LD_RUN_PATH'
9384 hardcode_shlibpath_var=no
9385 ;;
9386
9387 sysv4.3*)
9388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389 hardcode_shlibpath_var=no
9390 export_dynamic_flag_spec='-Bexport'
9391 ;;
9392
9393 sysv4*MP*)
9394 if test -d /usr/nec; then
9395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_shlibpath_var=no
9397 runpath_var=LD_RUN_PATH
9398 hardcode_runpath_var=yes
9399 ld_shlibs=yes
9400 fi
9401 ;;
9402
9403 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9404 no_undefined_flag='${wl}-z,text'
9405 archive_cmds_need_lc=no
9406 hardcode_shlibpath_var=no
9407 runpath_var='LD_RUN_PATH'
9408
9409 if test "$GCC" = yes; then
9410 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9411 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 else
9413 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415 fi
9416 ;;
9417
9418 sysv5* | sco3.2v5* | sco5v6*)
9419 # Note: We can NOT use -z defs as we might desire, because we do not
9420 # link with -lc, and that would cause any symbols used from libc to
9421 # always be unresolved, which means just about no library would
9422 # ever link correctly. If we're not using GNU ld we use -z text
9423 # though, which does catch some bad symbols but isn't as heavy-handed
9424 # as -z defs.
9425 no_undefined_flag='${wl}-z,text'
9426 allow_undefined_flag='${wl}-z,nodefs'
9427 archive_cmds_need_lc=no
9428 hardcode_shlibpath_var=no
9429 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9430 hardcode_libdir_separator=':'
9431 link_all_deplibs=yes
9432 export_dynamic_flag_spec='${wl}-Bexport'
9433 runpath_var='LD_RUN_PATH'
9434
9435 if test "$GCC" = yes; then
9436 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9437 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9438 else
9439 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9440 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9441 fi
9442 ;;
9443
9444 uts4*)
9445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_libdir_flag_spec='-L$libdir'
9447 hardcode_shlibpath_var=no
9448 ;;
9449
9450 *)
9451 ld_shlibs=no
9452 ;;
9453 esac
9454
9455 if test x$host_vendor = xsni; then
9456 case $host in
9457 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9458 export_dynamic_flag_spec='${wl}-Blargedynsym'
9459 ;;
9460 esac
9461 fi
9462 fi
9463
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9465$as_echo "$ld_shlibs" >&6; }
9466test "$ld_shlibs" = no && can_build_shared=no
9467
9468with_gnu_ld=$with_gnu_ld
9469
9470
9471
9472
9473
f0569246 9474
b7026657 9475
f0569246 9476
6ffe910a 9477
6ffe910a
MF
9478
9479
6ffe910a 9480
f0569246 9481
f0569246 9482
c906108c 9483
6bb11ab3
L
9484#
9485# Do we need to explicitly link libc?
9486#
9487case "x$archive_cmds_need_lc" in
9488x|xyes)
9489 # Assume -lc should be added
9490 archive_cmds_need_lc=yes
9491
9492 if test "$enable_shared" = yes && test "$GCC" = yes; then
9493 case $archive_cmds in
9494 *'~'*)
9495 # FIXME: we may have to deal with multi-command sequences.
9496 ;;
9497 '$CC '*)
9498 # Test whether the compiler implicitly links with -lc since on some
9499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9500 # to ld, don't add -lc before -lgcc.
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9502$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
d0ac1c44 9503if ${lt_cv_archive_cmds_need_lc+:} false; then :
6ffe910a 9504 $as_echo_n "(cached) " >&6
f0569246 9505else
6bb11ab3
L
9506 $RM conftest*
9507 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9508
9509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9510 (eval $ac_compile) 2>&5
9511 ac_status=$?
9512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9513 test $ac_status = 0; } 2>conftest.err; then
9514 soname=conftest
9515 lib=conftest
9516 libobjs=conftest.$ac_objext
9517 deplibs=
9518 wl=$lt_prog_compiler_wl
9519 pic_flag=$lt_prog_compiler_pic
9520 compiler_flags=-v
9521 linker_flags=-v
9522 verstring=
9523 output_objdir=.
9524 libname=conftest
9525 lt_save_allow_undefined_flag=$allow_undefined_flag
9526 allow_undefined_flag=
9527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9528 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9529 ac_status=$?
9530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9531 test $ac_status = 0; }
9532 then
9533 lt_cv_archive_cmds_need_lc=no
9534 else
9535 lt_cv_archive_cmds_need_lc=yes
9536 fi
9537 allow_undefined_flag=$lt_save_allow_undefined_flag
9538 else
9539 cat conftest.err 1>&5
9540 fi
9541 $RM conftest*
c906108c 9542
6ffe910a 9543fi
6bb11ab3
L
9544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9545$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9546 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9547 ;;
9548 esac
9549 fi
9550 ;;
6ffe910a 9551esac
c906108c 9552
c906108c 9553
6ffe910a 9554
c906108c 9555
81ecdfbb 9556
35695fd6 9557
35695fd6 9558
35695fd6 9559
f0569246 9560
c906108c 9561
f0569246 9562
b7026657 9563
f0569246 9564
c906108c 9565
81ecdfbb 9566
b7026657 9567
f0569246
AC
9568
9569
81ecdfbb 9570
81ecdfbb 9571
81ecdfbb
RW
9572
9573
81ecdfbb 9574
81ecdfbb 9575
f0569246
AC
9576
9577
c906108c 9578
f0569246 9579
c906108c 9580
c906108c 9581
81ecdfbb 9582
b7026657 9583
c906108c 9584
f0569246 9585
81ecdfbb 9586
f0569246 9587
c906108c 9588
c906108c 9589
b7026657 9590
81ecdfbb 9591
b7026657 9592
c906108c 9593
c906108c 9594
b7026657
AC
9595
9596
9597
9598
6ffe910a 9599
2232061b
MF
9600
9601
2232061b 9602
2232061b
MF
9603
9604
2232061b
MF
9605
9606
2232061b 9607
6bb11ab3
L
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9710$as_echo_n "checking dynamic linker characteristics... " >&6; }
9711
9712if test "$GCC" = yes; then
9713 case $host_os in
9714 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9715 *) lt_awk_arg="/^libraries:/" ;;
9716 esac
9717 case $host_os in
9718 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9719 *) lt_sed_strip_eq="s,=/,/,g" ;;
9720 esac
9721 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9722 case $lt_search_path_spec in
9723 *\;*)
9724 # if the path contains ";" then we assume it to be the separator
9725 # otherwise default to the standard path separator (i.e. ":") - it is
9726 # assumed that no part of a normal pathname contains ";" but that should
9727 # okay in the real world where ";" in dirpaths is itself problematic.
9728 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9729 ;;
9730 *)
9731 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9732 ;;
9733 esac
9734 # Ok, now we have the path, separated by spaces, we can step through it
9735 # and add multilib dir if necessary.
9736 lt_tmp_lt_search_path_spec=
9737 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9738 for lt_sys_path in $lt_search_path_spec; do
9739 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9740 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9741 else
9742 test -d "$lt_sys_path" && \
9743 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9744 fi
9745 done
9746 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9747BEGIN {RS=" "; FS="/|\n";} {
9748 lt_foo="";
9749 lt_count=0;
9750 for (lt_i = NF; lt_i > 0; lt_i--) {
9751 if ($lt_i != "" && $lt_i != ".") {
9752 if ($lt_i == "..") {
9753 lt_count++;
9754 } else {
9755 if (lt_count == 0) {
9756 lt_foo="/" $lt_i lt_foo;
9757 } else {
9758 lt_count--;
9759 }
9760 }
9761 }
9762 }
9763 if (lt_foo != "") { lt_freq[lt_foo]++; }
9764 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9765}'`
9766 # AWK program above erroneously prepends '/' to C:/dos/paths
9767 # for these hosts.
9768 case $host_os in
9769 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9770 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9771 esac
9772 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9773else
9774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9775fi
9776library_names_spec=
9777libname_spec='lib$name'
9778soname_spec=
9779shrext_cmds=".so"
9780postinstall_cmds=
9781postuninstall_cmds=
9782finish_cmds=
9783finish_eval=
9784shlibpath_var=
9785shlibpath_overrides_runpath=unknown
9786version_type=none
9787dynamic_linker="$host_os ld.so"
9788sys_lib_dlsearch_path_spec="/lib /usr/lib"
9789need_lib_prefix=unknown
9790hardcode_into_libs=no
9791
9792# when you set need_version to no, make sure it does not cause -set_version
9793# flags to be left without arguments
9794need_version=unknown
9795
9796case $host_os in
9797aix3*)
9798 version_type=linux
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9800 shlibpath_var=LIBPATH
9801
9802 # AIX 3 has no versioning support, so we append a major version to the name.
9803 soname_spec='${libname}${release}${shared_ext}$major'
9804 ;;
9805
9806aix[4-9]*)
9807 version_type=linux
9808 need_lib_prefix=no
9809 need_version=no
9810 hardcode_into_libs=yes
9811 if test "$host_cpu" = ia64; then
9812 # AIX 5 supports IA64
9813 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9814 shlibpath_var=LD_LIBRARY_PATH
9815 else
9816 # With GCC up to 2.95.x, collect2 would create an import file
9817 # for dependence libraries. The import file would start with
9818 # the line `#! .'. This would cause the generated library to
9819 # depend on `.', always an invalid library. This was fixed in
9820 # development snapshots of GCC prior to 3.0.
9821 case $host_os in
9822 aix4 | aix4.[01] | aix4.[01].*)
9823 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9824 echo ' yes '
9825 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9826 :
9827 else
9828 can_build_shared=no
9829 fi
9830 ;;
9831 esac
9832 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9833 # soname into executable. Probably we can add versioning support to
9834 # collect2, so additional links can be useful in future.
9835 if test "$aix_use_runtimelinking" = yes; then
9836 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9837 # instead of lib<name>.a to let people know that these are not
9838 # typical AIX shared libraries.
9839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9840 else
9841 # We preserve .a as extension for shared libraries through AIX4.2
9842 # and later when we are not doing run time linking.
9843 library_names_spec='${libname}${release}.a $libname.a'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 fi
9846 shlibpath_var=LIBPATH
2232061b 9847 fi
6bb11ab3
L
9848 ;;
9849
9850amigaos*)
9851 case $host_cpu in
9852 powerpc)
9853 # Since July 2007 AmigaOS4 officially supports .so libraries.
9854 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9856 ;;
9857 m68k)
9858 library_names_spec='$libname.ixlibrary $libname.a'
9859 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9860 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'
9861 ;;
9862 esac
9863 ;;
9864
9865beos*)
9866 library_names_spec='${libname}${shared_ext}'
9867 dynamic_linker="$host_os ld.so"
9868 shlibpath_var=LIBRARY_PATH
9869 ;;
9870
9871bsdi[45]*)
9872 version_type=linux
9873 need_version=no
9874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9875 soname_spec='${libname}${release}${shared_ext}$major'
9876 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9877 shlibpath_var=LD_LIBRARY_PATH
9878 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9879 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9880 # the default ld.so.conf also contains /usr/contrib/lib and
9881 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9882 # libtool to hard-code these into programs
9883 ;;
9884
9885cygwin* | mingw* | pw32* | cegcc*)
9886 version_type=windows
9887 shrext_cmds=".dll"
9888 need_version=no
9889 need_lib_prefix=no
9890
9891 case $GCC,$host_os in
9892 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9893 library_names_spec='$libname.dll.a'
9894 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9895 postinstall_cmds='base_file=`basename \${file}`~
9896 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9897 dldir=$destdir/`dirname \$dlpath`~
9898 test -d \$dldir || mkdir -p \$dldir~
9899 $install_prog $dir/$dlname \$dldir/$dlname~
9900 chmod a+x \$dldir/$dlname~
9901 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9902 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9903 fi'
9904 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9905 dlpath=$dir/\$dldll~
9906 $RM \$dlpath'
9907 shlibpath_overrides_runpath=yes
9908
9909 case $host_os in
9910 cygwin*)
9911 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9912 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9913
9914 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9915 ;;
9916 mingw* | cegcc*)
9917 # MinGW DLLs use traditional 'lib' prefix
9918 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9919 ;;
9920 pw32*)
9921 # pw32 DLLs use 'pw' prefix rather than 'lib'
9922 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9923 ;;
9924 esac
9925 ;;
2232061b 9926
6bb11ab3
L
9927 *)
9928 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9929 ;;
9930 esac
9931 dynamic_linker='Win32 ld.exe'
9932 # FIXME: first we should search . and the directory the executable is in
9933 shlibpath_var=PATH
9934 ;;
9935
9936darwin* | rhapsody*)
9937 dynamic_linker="$host_os dyld"
9938 version_type=darwin
9939 need_lib_prefix=no
9940 need_version=no
9941 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9942 soname_spec='${libname}${release}${major}$shared_ext'
9943 shlibpath_overrides_runpath=yes
9944 shlibpath_var=DYLD_LIBRARY_PATH
9945 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9946
9947 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9948 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9949 ;;
9950
9951dgux*)
9952 version_type=linux
9953 need_lib_prefix=no
9954 need_version=no
9955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9956 soname_spec='${libname}${release}${shared_ext}$major'
9957 shlibpath_var=LD_LIBRARY_PATH
9958 ;;
9959
9960freebsd* | dragonfly*)
9961 # DragonFly does not have aout. When/if they implement a new
9962 # versioning mechanism, adjust this.
9963 if test -x /usr/bin/objformat; then
9964 objformat=`/usr/bin/objformat`
9965 else
9966 case $host_os in
9967 freebsd[23].*) objformat=aout ;;
9968 *) objformat=elf ;;
9969 esac
9970 fi
9971 version_type=freebsd-$objformat
9972 case $version_type in
9973 freebsd-elf*)
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9975 need_version=no
9976 need_lib_prefix=no
9977 ;;
9978 freebsd-*)
9979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9980 need_version=yes
9981 ;;
9982 esac
9983 shlibpath_var=LD_LIBRARY_PATH
9984 case $host_os in
9985 freebsd2.*)
9986 shlibpath_overrides_runpath=yes
9987 ;;
9988 freebsd3.[01]* | freebsdelf3.[01]*)
9989 shlibpath_overrides_runpath=yes
9990 hardcode_into_libs=yes
9991 ;;
9992 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9993 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9994 shlibpath_overrides_runpath=no
9995 hardcode_into_libs=yes
9996 ;;
9997 *) # from 4.6 on, and DragonFly
9998 shlibpath_overrides_runpath=yes
9999 hardcode_into_libs=yes
10000 ;;
10001 esac
10002 ;;
10003
6bb11ab3
L
10004haiku*)
10005 version_type=linux
10006 need_lib_prefix=no
10007 need_version=no
10008 dynamic_linker="$host_os runtime_loader"
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 shlibpath_var=LIBRARY_PATH
10012 shlibpath_overrides_runpath=yes
10013 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10014 hardcode_into_libs=yes
10015 ;;
10016
10017hpux9* | hpux10* | hpux11*)
10018 # Give a soname corresponding to the major version so that dld.sl refuses to
10019 # link against other versions.
10020 version_type=sunos
10021 need_lib_prefix=no
10022 need_version=no
10023 case $host_cpu in
10024 ia64*)
10025 shrext_cmds='.so'
10026 hardcode_into_libs=yes
10027 dynamic_linker="$host_os dld.so"
10028 shlibpath_var=LD_LIBRARY_PATH
10029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 if test "X$HPUX_IA64_MODE" = X32; then
10033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10034 else
10035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10036 fi
10037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10038 ;;
10039 hppa*64*)
10040 shrext_cmds='.sl'
10041 hardcode_into_libs=yes
10042 dynamic_linker="$host_os dld.sl"
10043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046 soname_spec='${libname}${release}${shared_ext}$major'
10047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10049 ;;
10050 *)
10051 shrext_cmds='.sl'
10052 dynamic_linker="$host_os dld.sl"
10053 shlibpath_var=SHLIB_PATH
10054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056 soname_spec='${libname}${release}${shared_ext}$major'
10057 ;;
10058 esac
10059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10060 postinstall_cmds='chmod 555 $lib'
10061 # or fails outright, so override atomically:
10062 install_override_mode=555
10063 ;;
10064
10065interix[3-9]*)
10066 version_type=linux
10067 need_lib_prefix=no
10068 need_version=no
10069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10070 soname_spec='${libname}${release}${shared_ext}$major'
10071 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10072 shlibpath_var=LD_LIBRARY_PATH
10073 shlibpath_overrides_runpath=no
10074 hardcode_into_libs=yes
10075 ;;
10076
10077irix5* | irix6* | nonstopux*)
10078 case $host_os in
10079 nonstopux*) version_type=nonstopux ;;
10080 *)
10081 if test "$lt_cv_prog_gnu_ld" = yes; then
10082 version_type=linux
10083 else
10084 version_type=irix
10085 fi ;;
10086 esac
10087 need_lib_prefix=no
10088 need_version=no
10089 soname_spec='${libname}${release}${shared_ext}$major'
10090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10091 case $host_os in
10092 irix5* | nonstopux*)
10093 libsuff= shlibsuff=
10094 ;;
10095 *)
10096 case $LD in # libtool.m4 will add one of these switches to LD
10097 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10098 libsuff= shlibsuff= libmagic=32-bit;;
10099 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10100 libsuff=32 shlibsuff=N32 libmagic=N32;;
10101 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10102 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10103 *) libsuff= shlibsuff= libmagic=never-match;;
10104 esac
10105 ;;
10106 esac
10107 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10108 shlibpath_overrides_runpath=no
10109 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10110 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10111 hardcode_into_libs=yes
10112 ;;
10113
10114# No shared lib support for Linux oldld, aout, or coff.
10115linux*oldld* | linux*aout* | linux*coff*)
10116 dynamic_linker=no
10117 ;;
10118
10119# This must be Linux ELF.
46f900c0 10120linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6bb11ab3
L
10121 version_type=linux
10122 need_lib_prefix=no
10123 need_version=no
10124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 soname_spec='${libname}${release}${shared_ext}$major'
10126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10127 shlibpath_var=LD_LIBRARY_PATH
10128 shlibpath_overrides_runpath=no
10129
10130 # Some binutils ld are patched to set DT_RUNPATH
d0ac1c44 10131 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
2232061b
MF
10132 $as_echo_n "(cached) " >&6
10133else
6bb11ab3
L
10134 lt_cv_shlibpath_overrides_runpath=no
10135 save_LDFLAGS=$LDFLAGS
10136 save_libdir=$libdir
10137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232061b
MF
10140/* end confdefs.h. */
10141
2232061b
MF
10142int
10143main ()
10144{
10145
10146 ;
10147 return 0;
10148}
10149_ACEOF
6bb11ab3
L
10150if ac_fn_c_try_link "$LINENO"; then :
10151 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10152 lt_cv_shlibpath_overrides_runpath=yes
2232061b 10153fi
2232061b 10154fi
6bb11ab3
L
10155rm -f core conftest.err conftest.$ac_objext \
10156 conftest$ac_exeext conftest.$ac_ext
10157 LDFLAGS=$save_LDFLAGS
10158 libdir=$save_libdir
2232061b 10159
6bb11ab3 10160fi
2232061b 10161
6bb11ab3 10162 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2232061b 10163
6bb11ab3
L
10164 # This implies no fast_install, which is unacceptable.
10165 # Some rework will be needed to allow for fast_install
10166 # before this can be enabled.
10167 hardcode_into_libs=yes
2232061b 10168
6bb11ab3
L
10169 # Append ld.so.conf contents to the search path
10170 if test -f /etc/ld.so.conf; then
10171 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' ' '`
10172 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10173 fi
10174
10175 # We used to test for /lib/ld.so.1 and disable shared libraries on
10176 # powerpc, because MkLinux only supported shared libraries with the
10177 # GNU dynamic linker. Since this was broken with cross compilers,
10178 # most powerpc-linux boxes support dynamic linking these days and
10179 # people can always --disable-shared, the test was removed, and we
10180 # assume the GNU/Linux dynamic linker is in use.
10181 dynamic_linker='GNU/Linux ld.so'
10182 ;;
10183
10184netbsd*)
10185 version_type=sunos
10186 need_lib_prefix=no
10187 need_version=no
10188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10191 dynamic_linker='NetBSD (a.out) ld.so'
2232061b 10192 else
6bb11ab3
L
10193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10194 soname_spec='${libname}${release}${shared_ext}$major'
10195 dynamic_linker='NetBSD ld.elf_so'
10196 fi
10197 shlibpath_var=LD_LIBRARY_PATH
10198 shlibpath_overrides_runpath=yes
10199 hardcode_into_libs=yes
10200 ;;
10201
10202newsos6)
10203 version_type=linux
10204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10205 shlibpath_var=LD_LIBRARY_PATH
10206 shlibpath_overrides_runpath=yes
10207 ;;
10208
10209*nto* | *qnx*)
10210 version_type=qnx
10211 need_lib_prefix=no
10212 need_version=no
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 shlibpath_var=LD_LIBRARY_PATH
10216 shlibpath_overrides_runpath=no
10217 hardcode_into_libs=yes
10218 dynamic_linker='ldqnx.so'
10219 ;;
10220
10221openbsd*)
10222 version_type=sunos
10223 sys_lib_dlsearch_path_spec="/usr/lib"
10224 need_lib_prefix=no
10225 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10226 case $host_os in
10227 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10228 *) need_version=no ;;
10229 esac
10230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10231 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10232 shlibpath_var=LD_LIBRARY_PATH
10233 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10234 case $host_os in
10235 openbsd2.[89] | openbsd2.[89].*)
10236 shlibpath_overrides_runpath=no
10237 ;;
10238 *)
10239 shlibpath_overrides_runpath=yes
10240 ;;
10241 esac
10242 else
10243 shlibpath_overrides_runpath=yes
10244 fi
10245 ;;
10246
10247os2*)
10248 libname_spec='$name'
10249 shrext_cmds=".dll"
10250 need_lib_prefix=no
10251 library_names_spec='$libname${shared_ext} $libname.a'
10252 dynamic_linker='OS/2 ld.exe'
10253 shlibpath_var=LIBPATH
10254 ;;
10255
10256osf3* | osf4* | osf5*)
10257 version_type=osf
10258 need_lib_prefix=no
10259 need_version=no
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10262 shlibpath_var=LD_LIBRARY_PATH
10263 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10264 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10265 ;;
10266
10267rdos*)
10268 dynamic_linker=no
10269 ;;
10270
10271solaris*)
10272 version_type=linux
10273 need_lib_prefix=no
10274 need_version=no
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 shlibpath_var=LD_LIBRARY_PATH
10278 shlibpath_overrides_runpath=yes
10279 hardcode_into_libs=yes
10280 # ldd complains unless libraries are executable
10281 postinstall_cmds='chmod +x $lib'
10282 ;;
10283
10284sunos4*)
10285 version_type=sunos
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10287 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10288 shlibpath_var=LD_LIBRARY_PATH
10289 shlibpath_overrides_runpath=yes
10290 if test "$with_gnu_ld" = yes; then
10291 need_lib_prefix=no
10292 fi
10293 need_version=yes
10294 ;;
10295
10296sysv4 | sysv4.3*)
10297 version_type=linux
10298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10299 soname_spec='${libname}${release}${shared_ext}$major'
10300 shlibpath_var=LD_LIBRARY_PATH
10301 case $host_vendor in
10302 sni)
10303 shlibpath_overrides_runpath=no
10304 need_lib_prefix=no
10305 runpath_var=LD_RUN_PATH
10306 ;;
10307 siemens)
10308 need_lib_prefix=no
10309 ;;
10310 motorola)
10311 need_lib_prefix=no
10312 need_version=no
10313 shlibpath_overrides_runpath=no
10314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10315 ;;
10316 esac
10317 ;;
10318
10319sysv4*MP*)
10320 if test -d /usr/nec ;then
10321 version_type=linux
10322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10323 soname_spec='$libname${shared_ext}.$major'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 fi
10326 ;;
10327
10328sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10329 version_type=freebsd-elf
10330 need_lib_prefix=no
10331 need_version=no
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 shlibpath_var=LD_LIBRARY_PATH
10335 shlibpath_overrides_runpath=yes
10336 hardcode_into_libs=yes
10337 if test "$with_gnu_ld" = yes; then
10338 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10339 else
10340 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10341 case $host_os in
10342 sco3.2v5*)
10343 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10344 ;;
10345 esac
2232061b 10346 fi
6bb11ab3
L
10347 sys_lib_dlsearch_path_spec='/usr/lib'
10348 ;;
10349
10350tpf*)
10351 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10352 version_type=linux
10353 need_lib_prefix=no
10354 need_version=no
10355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10356 shlibpath_var=LD_LIBRARY_PATH
10357 shlibpath_overrides_runpath=no
10358 hardcode_into_libs=yes
10359 ;;
10360
10361uts4*)
10362 version_type=linux
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 shlibpath_var=LD_LIBRARY_PATH
10366 ;;
10367
10368*)
10369 dynamic_linker=no
10370 ;;
10371esac
10372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10373$as_echo "$dynamic_linker" >&6; }
10374test "$dynamic_linker" = no && can_build_shared=no
10375
10376variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10377if test "$GCC" = yes; then
10378 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2232061b 10379fi
2232061b 10380
6bb11ab3
L
10381if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10382 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10383fi
10384if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10385 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10386fi
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
2232061b 10410
2232061b 10411
2232061b 10412
2232061b 10413
2232061b
MF
10414
10415
6ffe910a 10416
6ffe910a
MF
10417
10418
10419
10420
10421
2232061b 10422
6ffe910a
MF
10423
10424
10425
10426
6ffe910a 10427
6ffe910a 10428
6ffe910a
MF
10429
10430
6ffe910a 10431
6ffe910a 10432
6ffe910a
MF
10433
10434
5f3ef9d0 10435
5f3ef9d0
JB
10436
10437
10438
db2e4d67
MF
10439
10440
db2e4d67 10441
db2e4d67 10442
db2e4d67 10443
db2e4d67 10444
db2e4d67 10445
db2e4d67 10446
db2e4d67 10447
db2e4d67
MF
10448
10449
db2e4d67 10450
db2e4d67
MF
10451
10452
db2e4d67 10453
db2e4d67
MF
10454
10455
6ffe910a 10456
6ffe910a 10457
6ffe910a
MF
10458
10459
6ffe910a
MF
10460
10461
6ffe910a 10462
6ffe910a 10463
6ffe910a 10464
6ffe910a 10465
6ffe910a 10466
35695fd6 10467
35695fd6 10468
35695fd6 10469
b7026657 10470
b7026657 10471
c906108c 10472
b7026657 10473
b7026657 10474
c906108c 10475
b7026657 10476
6bb11ab3
L
10477
10478
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10480$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10481hardcode_action=
10482if test -n "$hardcode_libdir_flag_spec" ||
10483 test -n "$runpath_var" ||
10484 test "X$hardcode_automatic" = "Xyes" ; then
10485
10486 # We can hardcode non-existent directories.
10487 if test "$hardcode_direct" != no &&
10488 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10489 # have to relink, otherwise we might link with an installed library
10490 # when we should be linking with a yet-to-be-installed one
10491 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10492 test "$hardcode_minus_L" != no; then
10493 # Linking always hardcodes the temporary library directory.
10494 hardcode_action=relink
10495 else
10496 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10497 hardcode_action=immediate
10498 fi
10499else
10500 # We cannot hardcode anything, or else we can only hardcode existing
10501 # directories.
10502 hardcode_action=unsupported
10503fi
10504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10505$as_echo "$hardcode_action" >&6; }
10506
10507if test "$hardcode_action" = relink ||
10508 test "$inherit_rpath" = yes; then
10509 # Fast installation is not supported
10510 enable_fast_install=no
10511elif test "$shlibpath_overrides_runpath" = yes ||
10512 test "$enable_shared" = no; then
10513 # Fast installation is not necessary
10514 enable_fast_install=needless
c906108c 10515fi
b7026657 10516
c906108c 10517
6bb11ab3
L
10518
10519
10520
10521
10522 if test "x$enable_dlopen" != xyes; then
10523 enable_dlopen=unknown
10524 enable_dlopen_self=unknown
10525 enable_dlopen_self_static=unknown
10526else
10527 lt_cv_dlopen=no
10528 lt_cv_dlopen_libs=
10529
10530 case $host_os in
10531 beos*)
10532 lt_cv_dlopen="load_add_on"
10533 lt_cv_dlopen_libs=
10534 lt_cv_dlopen_self=yes
10535 ;;
10536
10537 mingw* | pw32* | cegcc*)
10538 lt_cv_dlopen="LoadLibrary"
10539 lt_cv_dlopen_libs=
10540 ;;
10541
10542 cygwin*)
10543 lt_cv_dlopen="dlopen"
10544 lt_cv_dlopen_libs=
10545 ;;
10546
10547 darwin*)
10548 # if libdl is installed we need to link against it
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10550$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10551if ${ac_cv_lib_dl_dlopen+:} false; then :
6bb11ab3
L
10552 $as_echo_n "(cached) " >&6
10553else
10554 ac_check_lib_save_LIBS=$LIBS
10555LIBS="-ldl $LIBS"
10556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557/* end confdefs.h. */
10558
10559/* Override any GCC internal prototype to avoid an error.
10560 Use char because int might match the return type of a GCC
10561 builtin and then its argument prototype would still apply. */
10562#ifdef __cplusplus
10563extern "C"
10564#endif
10565char dlopen ();
10566int
10567main ()
10568{
10569return dlopen ();
10570 ;
10571 return 0;
10572}
b7026657 10573_ACEOF
6bb11ab3
L
10574if ac_fn_c_try_link "$LINENO"; then :
10575 ac_cv_lib_dl_dlopen=yes
10576else
10577 ac_cv_lib_dl_dlopen=no
10578fi
10579rm -f core conftest.err conftest.$ac_objext \
10580 conftest$ac_exeext conftest.$ac_ext
10581LIBS=$ac_check_lib_save_LIBS
10582fi
10583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10584$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10585if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
10586 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10587else
10588
10589 lt_cv_dlopen="dyld"
10590 lt_cv_dlopen_libs=
10591 lt_cv_dlopen_self=yes
c906108c 10592
c906108c 10593fi
c906108c 10594
6bb11ab3 10595 ;;
c906108c 10596
6bb11ab3
L
10597 *)
10598 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
d0ac1c44 10599if test "x$ac_cv_func_shl_load" = xyes; then :
6bb11ab3
L
10600 lt_cv_dlopen="shl_load"
10601else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10603$as_echo_n "checking for shl_load in -ldld... " >&6; }
d0ac1c44 10604if ${ac_cv_lib_dld_shl_load+:} false; then :
6bb11ab3
L
10605 $as_echo_n "(cached) " >&6
10606else
10607 ac_check_lib_save_LIBS=$LIBS
10608LIBS="-ldld $LIBS"
10609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610/* end confdefs.h. */
10611
10612/* Override any GCC internal prototype to avoid an error.
10613 Use char because int might match the return type of a GCC
10614 builtin and then its argument prototype would still apply. */
10615#ifdef __cplusplus
10616extern "C"
10617#endif
10618char shl_load ();
10619int
10620main ()
10621{
10622return shl_load ();
10623 ;
10624 return 0;
10625}
10626_ACEOF
10627if ac_fn_c_try_link "$LINENO"; then :
10628 ac_cv_lib_dld_shl_load=yes
10629else
10630 ac_cv_lib_dld_shl_load=no
10631fi
10632rm -f core conftest.err conftest.$ac_objext \
10633 conftest$ac_exeext conftest.$ac_ext
10634LIBS=$ac_check_lib_save_LIBS
10635fi
10636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10637$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
d0ac1c44 10638if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
6bb11ab3
L
10639 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10640else
10641 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
d0ac1c44 10642if test "x$ac_cv_func_dlopen" = xyes; then :
6bb11ab3
L
10643 lt_cv_dlopen="dlopen"
10644else
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10646$as_echo_n "checking for dlopen in -ldl... " >&6; }
d0ac1c44 10647if ${ac_cv_lib_dl_dlopen+:} false; then :
81ecdfbb 10648 $as_echo_n "(cached) " >&6
c906108c 10649else
b7026657 10650 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 10651LIBS="-ldl $LIBS"
81ecdfbb 10652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
10653/* end confdefs.h. */
10654
81ecdfbb
RW
10655/* Override any GCC internal prototype to avoid an error.
10656 Use char because int might match the return type of a GCC
10657 builtin and then its argument prototype would still apply. */
b7026657
AC
10658#ifdef __cplusplus
10659extern "C"
10660#endif
6bb11ab3 10661char dlopen ();
b7026657
AC
10662int
10663main ()
10664{
6bb11ab3 10665return dlopen ();
b7026657
AC
10666 ;
10667 return 0;
10668}
10669_ACEOF
81ecdfbb 10670if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 10671 ac_cv_lib_dl_dlopen=yes
b7026657 10672else
6bb11ab3 10673 ac_cv_lib_dl_dlopen=no
b7026657 10674fi
81ecdfbb
RW
10675rm -f core conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
10677LIBS=$ac_check_lib_save_LIBS
10678fi
6bb11ab3
L
10679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10680$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d0ac1c44 10681if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
6bb11ab3
L
10682 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10683else
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10685$as_echo_n "checking for dlopen in -lsvld... " >&6; }
d0ac1c44 10686if ${ac_cv_lib_svld_dlopen+:} false; then :
81ecdfbb 10687 $as_echo_n "(cached) " >&6
c906108c 10688else
b7026657 10689 ac_check_lib_save_LIBS=$LIBS
6bb11ab3 10690LIBS="-lsvld $LIBS"
81ecdfbb 10691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
10692/* end confdefs.h. */
10693
81ecdfbb
RW
10694/* Override any GCC internal prototype to avoid an error.
10695 Use char because int might match the return type of a GCC
10696 builtin and then its argument prototype would still apply. */
b7026657
AC
10697#ifdef __cplusplus
10698extern "C"
10699#endif
6bb11ab3 10700char dlopen ();
b7026657
AC
10701int
10702main ()
10703{
6bb11ab3 10704return dlopen ();
b7026657
AC
10705 ;
10706 return 0;
10707}
10708_ACEOF
81ecdfbb 10709if ac_fn_c_try_link "$LINENO"; then :
6bb11ab3 10710 ac_cv_lib_svld_dlopen=yes
b7026657 10711else
6bb11ab3 10712 ac_cv_lib_svld_dlopen=no
b7026657 10713fi
81ecdfbb
RW
10714rm -f core conftest.err conftest.$ac_objext \
10715 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
10716LIBS=$ac_check_lib_save_LIBS
10717fi
6bb11ab3
L
10718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10719$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
d0ac1c44 10720if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
6bb11ab3 10721 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5912fadd 10722else
6bb11ab3
L
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10724$as_echo_n "checking for dld_link in -ldld... " >&6; }
d0ac1c44 10725if ${ac_cv_lib_dld_dld_link+:} false; then :
81ecdfbb
RW
10726 $as_echo_n "(cached) " >&6
10727else
6bb11ab3
L
10728 ac_check_lib_save_LIBS=$LIBS
10729LIBS="-ldld $LIBS"
81ecdfbb 10730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b5bd9624 10731/* end confdefs.h. */
81ecdfbb
RW
10732
10733/* Override any GCC internal prototype to avoid an error.
10734 Use char because int might match the return type of a GCC
10735 builtin and then its argument prototype would still apply. */
10736#ifdef __cplusplus
10737extern "C"
10738#endif
6bb11ab3 10739char dld_link ();
81ecdfbb
RW
10740int
10741main ()
10742{
6bb11ab3 10743return dld_link ();
81ecdfbb
RW
10744 ;
10745 return 0;
10746}
b5bd9624 10747_ACEOF
6bb11ab3
L
10748if ac_fn_c_try_link "$LINENO"; then :
10749 ac_cv_lib_dld_dld_link=yes
10750else
10751 ac_cv_lib_dld_dld_link=no
10752fi
10753rm -f core conftest.err conftest.$ac_objext \
10754 conftest$ac_exeext conftest.$ac_ext
10755LIBS=$ac_check_lib_save_LIBS
10756fi
10757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10758$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
d0ac1c44 10759if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
6bb11ab3
L
10760 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10761fi
10762
10763
10764fi
10765
10766
10767fi
10768
10769
10770fi
10771
10772
10773fi
10774
10775
10776fi
10777
10778 ;;
10779 esac
10780
10781 if test "x$lt_cv_dlopen" != xno; then
10782 enable_dlopen=yes
b5bd9624 10783 else
6bb11ab3
L
10784 enable_dlopen=no
10785 fi
10786
10787 case $lt_cv_dlopen in
10788 dlopen)
10789 save_CPPFLAGS="$CPPFLAGS"
10790 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10791
10792 save_LDFLAGS="$LDFLAGS"
10793 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10794
10795 save_LIBS="$LIBS"
10796 LIBS="$lt_cv_dlopen_libs $LIBS"
10797
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10799$as_echo_n "checking whether a program can dlopen itself... " >&6; }
d0ac1c44 10800if ${lt_cv_dlopen_self+:} false; then :
6bb11ab3
L
10801 $as_echo_n "(cached) " >&6
10802else
10803 if test "$cross_compiling" = yes; then :
10804 lt_cv_dlopen_self=cross
10805else
10806 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10807 lt_status=$lt_dlunknown
10808 cat > conftest.$ac_ext <<_LT_EOF
5ea45474 10809#line 10809 "configure"
6bb11ab3
L
10810#include "confdefs.h"
10811
10812#if HAVE_DLFCN_H
10813#include <dlfcn.h>
10814#endif
10815
10816#include <stdio.h>
10817
10818#ifdef RTLD_GLOBAL
10819# define LT_DLGLOBAL RTLD_GLOBAL
10820#else
10821# ifdef DL_GLOBAL
10822# define LT_DLGLOBAL DL_GLOBAL
10823# else
10824# define LT_DLGLOBAL 0
10825# endif
10826#endif
10827
10828/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10829 find out it does not work in some platform. */
10830#ifndef LT_DLLAZY_OR_NOW
10831# ifdef RTLD_LAZY
10832# define LT_DLLAZY_OR_NOW RTLD_LAZY
10833# else
10834# ifdef DL_LAZY
10835# define LT_DLLAZY_OR_NOW DL_LAZY
10836# else
10837# ifdef RTLD_NOW
10838# define LT_DLLAZY_OR_NOW RTLD_NOW
10839# else
10840# ifdef DL_NOW
10841# define LT_DLLAZY_OR_NOW DL_NOW
10842# else
10843# define LT_DLLAZY_OR_NOW 0
10844# endif
10845# endif
10846# endif
10847# endif
10848#endif
10849
10850/* When -fvisbility=hidden is used, assume the code has been annotated
10851 correspondingly for the symbols needed. */
10852#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10853void fnord () __attribute__((visibility("default")));
10854#endif
10855
10856void fnord () { int i=42; }
10857int main ()
10858{
10859 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10860 int status = $lt_dlunknown;
10861
10862 if (self)
10863 {
10864 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10865 else
10866 {
10867 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10868 else puts (dlerror ());
10869 }
10870 /* dlclose (self); */
10871 }
10872 else
10873 puts (dlerror ());
10874
10875 return status;
10876}
10877_LT_EOF
10878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10879 (eval $ac_link) 2>&5
10880 ac_status=$?
10881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10882 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10883 (./conftest; exit; ) >&5 2>/dev/null
10884 lt_status=$?
10885 case x$lt_status in
10886 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10887 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10888 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10889 esac
10890 else :
10891 # compilation failed
10892 lt_cv_dlopen_self=no
b5bd9624 10893 fi
b5bd9624 10894fi
6bb11ab3
L
10895rm -fr conftest*
10896
10897
b5bd9624 10898fi
6bb11ab3
L
10899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10900$as_echo "$lt_cv_dlopen_self" >&6; }
b5bd9624 10901
6bb11ab3
L
10902 if test "x$lt_cv_dlopen_self" = xyes; then
10903 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10905$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
d0ac1c44 10906if ${lt_cv_dlopen_self_static+:} false; then :
6bb11ab3 10907 $as_echo_n "(cached) " >&6
b5bd9624 10908else
6bb11ab3
L
10909 if test "$cross_compiling" = yes; then :
10910 lt_cv_dlopen_self_static=cross
10911else
10912 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10913 lt_status=$lt_dlunknown
10914 cat > conftest.$ac_ext <<_LT_EOF
5ea45474 10915#line 10915 "configure"
6bb11ab3
L
10916#include "confdefs.h"
10917
10918#if HAVE_DLFCN_H
10919#include <dlfcn.h>
10920#endif
10921
10922#include <stdio.h>
10923
10924#ifdef RTLD_GLOBAL
10925# define LT_DLGLOBAL RTLD_GLOBAL
10926#else
10927# ifdef DL_GLOBAL
10928# define LT_DLGLOBAL DL_GLOBAL
10929# else
10930# define LT_DLGLOBAL 0
10931# endif
10932#endif
10933
10934/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10935 find out it does not work in some platform. */
10936#ifndef LT_DLLAZY_OR_NOW
10937# ifdef RTLD_LAZY
10938# define LT_DLLAZY_OR_NOW RTLD_LAZY
10939# else
10940# ifdef DL_LAZY
10941# define LT_DLLAZY_OR_NOW DL_LAZY
10942# else
10943# ifdef RTLD_NOW
10944# define LT_DLLAZY_OR_NOW RTLD_NOW
10945# else
10946# ifdef DL_NOW
10947# define LT_DLLAZY_OR_NOW DL_NOW
10948# else
10949# define LT_DLLAZY_OR_NOW 0
10950# endif
10951# endif
10952# endif
10953# endif
10954#endif
10955
10956/* When -fvisbility=hidden is used, assume the code has been annotated
10957 correspondingly for the symbols needed. */
10958#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10959void fnord () __attribute__((visibility("default")));
10960#endif
10961
10962void fnord () { int i=42; }
10963int main ()
10964{
10965 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10966 int status = $lt_dlunknown;
10967
10968 if (self)
10969 {
10970 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10971 else
10972 {
10973 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10974 else puts (dlerror ());
10975 }
10976 /* dlclose (self); */
10977 }
10978 else
10979 puts (dlerror ());
10980
10981 return status;
10982}
10983_LT_EOF
10984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10985 (eval $ac_link) 2>&5
10986 ac_status=$?
10987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10988 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10989 (./conftest; exit; ) >&5 2>/dev/null
10990 lt_status=$?
10991 case x$lt_status in
10992 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10993 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10994 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10995 esac
10996 else :
10997 # compilation failed
10998 lt_cv_dlopen_self_static=no
10999 fi
b5bd9624 11000fi
6bb11ab3
L
11001rm -fr conftest*
11002
11003
b5bd9624 11004fi
6bb11ab3
L
11005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11006$as_echo "$lt_cv_dlopen_self_static" >&6; }
11007 fi
11008
11009 CPPFLAGS="$save_CPPFLAGS"
11010 LDFLAGS="$save_LDFLAGS"
11011 LIBS="$save_LIBS"
11012 ;;
11013 esac
11014
11015 case $lt_cv_dlopen_self in
11016 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11017 *) enable_dlopen_self=unknown ;;
11018 esac
11019
11020 case $lt_cv_dlopen_self_static in
11021 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11022 *) enable_dlopen_self_static=unknown ;;
11023 esac
11024fi
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042striplib=
11043old_striplib=
11044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11045$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11046if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11047 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11048 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11050$as_echo "yes" >&6; }
11051else
11052# FIXME - insert some real tests, host_os isn't really good enough
11053 case $host_os in
11054 darwin*)
11055 if test -n "$STRIP" ; then
11056 striplib="$STRIP -x"
11057 old_striplib="$STRIP -S"
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11059$as_echo "yes" >&6; }
11060 else
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11062$as_echo "no" >&6; }
11063 fi
11064 ;;
11065 *)
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067$as_echo "no" >&6; }
11068 ;;
11069 esac
11070fi
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083 # Report which library types will actually be built
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11085$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11087$as_echo "$can_build_shared" >&6; }
11088
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11090$as_echo_n "checking whether to build shared libraries... " >&6; }
11091 test "$can_build_shared" = "no" && enable_shared=no
11092
11093 # On AIX, shared libraries and static libraries use the same namespace, and
11094 # are all built from PIC.
11095 case $host_os in
11096 aix3*)
11097 test "$enable_shared" = yes && enable_static=no
11098 if test -n "$RANLIB"; then
11099 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11100 postinstall_cmds='$RANLIB $lib'
11101 fi
11102 ;;
11103
11104 aix[4-9]*)
11105 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11106 test "$enable_shared" = yes && enable_static=no
11107 fi
11108 ;;
11109 esac
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11111$as_echo "$enable_shared" >&6; }
11112
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11114$as_echo_n "checking whether to build static libraries... " >&6; }
11115 # Make sure either enable_shared or enable_static is yes.
11116 test "$enable_shared" = yes || enable_static=yes
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11118$as_echo "$enable_static" >&6; }
11119
11120
11121
11122
11123fi
11124ac_ext=c
11125ac_cpp='$CPP $CPPFLAGS'
11126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11128ac_compiler_gnu=$ac_cv_c_compiler_gnu
11129
11130CC="$lt_save_CC"
11131
11132
11133
11134
11135
11136
11137
11138
11139
b5bd9624 11140
b5bd9624 11141
b5bd9624 11142
b5bd9624 11143
6bb11ab3
L
11144 ac_config_commands="$ac_config_commands libtool"
11145
11146
11147
11148
11149# Only expand once:
11150
11151
5912fadd 11152
b5bd9624 11153
c906108c
SS
11154
11155
31e6ad7d
MF
11156
11157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11158$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11159 # Check whether --enable-maintainer-mode was given.
81ecdfbb 11160if test "${enable_maintainer_mode+set}" = set; then :
31e6ad7d
MF
11161 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11162else
11163 USE_MAINTAINER_MODE=no
c906108c 11164fi
31e6ad7d
MF
11165
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11167$as_echo "$USE_MAINTAINER_MODE" >&6; }
11168 if test $USE_MAINTAINER_MODE = yes; then
11169 MAINTAINER_MODE_TRUE=
11170 MAINTAINER_MODE_FALSE='#'
c906108c 11171else
31e6ad7d
MF
11172 MAINTAINER_MODE_TRUE='#'
11173 MAINTAINER_MODE_FALSE=
81ecdfbb
RW
11174fi
11175
31e6ad7d
MF
11176 MAINT=$MAINTAINER_MODE_TRUE
11177
11178
c906108c
SS
11179
11180
ce39bd38
MF
11181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim debug setting" >&5
11182$as_echo_n "checking for sim debug setting... " >&6; }
11183sim_debug="0"
81ecdfbb
RW
11184# Check whether --enable-sim-debug was given.
11185if test "${enable_sim_debug+set}" = set; then :
11186 enableval=$enable_sim_debug; case "${enableval}" in
ce39bd38
MF
11187 yes) sim_debug="7";;
11188 no) sim_debug="0";;
11189 *) sim_debug="($enableval)";;
c906108c 11190esac
c906108c 11191fi
ce39bd38
MF
11192if test "$sim_debug" != "0"; then
11193
11194cat >>confdefs.h <<_ACEOF
11195#define DEBUG $sim_debug
11196_ACEOF
11197
81ecdfbb
RW
11198fi
11199
ce39bd38
MF
11200cat >>confdefs.h <<_ACEOF
11201#define WITH_DEBUG $sim_debug
11202_ACEOF
11203
11204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_debug" >&5
11205$as_echo "$sim_debug" >&6; }
c906108c
SS
11206
11207
ce39bd38
MF
11208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim stdio debug behavior" >&5
11209$as_echo_n "checking for sim stdio debug behavior... " >&6; }
11210sim_stdio="0"
81ecdfbb
RW
11211# Check whether --enable-sim-stdio was given.
11212if test "${enable_sim_stdio+set}" = set; then :
11213 enableval=$enable_sim_stdio; case "${enableval}" in
ce39bd38
MF
11214 yes) sim_stdio="DO_USE_STDIO";;
11215 no) sim_stdio="DONT_USE_STDIO";;
d0ac1c44 11216 *) as_fn_error $? "Unknown value $enableval passed to --enable-sim-stdio" "$LINENO" 5;;
c906108c 11217esac
81ecdfbb
RW
11218fi
11219
ce39bd38
MF
11220cat >>confdefs.h <<_ACEOF
11221#define WITH_STDIO $sim_stdio
11222_ACEOF
11223
11224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_stdio" >&5
11225$as_echo "$sim_stdio" >&6; }
c906108c
SS
11226
11227
ce39bd38
MF
11228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim trace settings" >&5
11229$as_echo_n "checking for sim trace settings... " >&6; }
11230sim_trace="~TRACE_debug"
81ecdfbb
RW
11231# Check whether --enable-sim-trace was given.
11232if test "${enable_sim_trace+set}" = set; then :
11233 enableval=$enable_sim_trace; case "${enableval}" in
ce39bd38
MF
11234 yes) sim_trace="-1";;
11235 no) sim_trace="0";;
c906108c 11236 [-0-9]*)
ce39bd38 11237 sim_trace="'(${enableval})'";;
2232061b 11238 [[:lower:]]*)
c906108c
SS
11239 sim_trace=""
11240 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11241 if test x"$sim_trace" = x; then
ce39bd38 11242 sim_trace="(TRACE_$x"
c906108c
SS
11243 else
11244 sim_trace="${sim_trace}|TRACE_$x"
11245 fi
11246 done
ce39bd38 11247 sim_trace="$sim_trace)" ;;
c906108c 11248esac
81ecdfbb
RW
11249fi
11250
ce39bd38
MF
11251cat >>confdefs.h <<_ACEOF
11252#define WITH_TRACE $sim_trace
11253_ACEOF
11254
11255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_trace" >&5
11256$as_echo "$sim_trace" >&6; }
c906108c
SS
11257
11258
ce39bd38
MF
11259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sim profile settings" >&5
11260$as_echo_n "checking for sim profile settings... " >&6; }
11261profile="1"
11262sim_profile="-1"
81ecdfbb
RW
11263# Check whether --enable-sim-profile was given.
11264if test "${enable_sim_profile+set}" = set; then :
11265 enableval=$enable_sim_profile; case "${enableval}" in
ce39bd38
MF
11266 yes) profile="1" sim_profile="-1";;
11267 no) profile="0" sim_profile="0";;
c906108c 11268 [-0-9]*)
ce39bd38 11269 profile="(${enableval})" sim_profile="(${enableval})";;
c906108c 11270 [a-z]*)
ce39bd38 11271 profile="1"
c906108c
SS
11272 sim_profile=""
11273 for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11274 if test x"$sim_profile" = x; then
ce39bd38 11275 sim_profile="(PROFILE_$x"
c906108c
SS
11276 else
11277 sim_profile="${sim_profile}|PROFILE_$x"
11278 fi
11279 done
ce39bd38 11280 sim_profile="$sim_profile)" ;;
c906108c 11281esac
81ecdfbb
RW
11282fi
11283
ce39bd38
MF
11284cat >>confdefs.h <<_ACEOF
11285#define PROFILE $profile
11286_ACEOF
c906108c
SS
11287
11288
ce39bd38
MF
11289cat >>confdefs.h <<_ACEOF
11290#define WITH_PROFILE $sim_profile
11291_ACEOF
11292
11293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sim_profile" >&5
11294$as_echo "$sim_profile" >&6; }
11295
11296
11297
347fe5bb
MF
11298sim_inline="-DDEFAULT_INLINE=0"
11299# Check whether --enable-sim-inline was given.
11300if test "${enable_sim_inline+set}" = set; then :
11301 enableval=$enable_sim_inline; sim_inline=""
11302case "$enableval" in
11303 no) sim_inline="-DDEFAULT_INLINE=0";;
11304 0) sim_inline="-DDEFAULT_INLINE=0";;
11305 yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_C_INLINE";;
11306 1) sim_inline="-DDEFAULT_INLINE=INLINE_LOCALS";;
11307 *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do
11308 new_flag=""
11309 case "$x" in
11310 *_INLINE=*) new_flag="-D$x";;
11311 *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;;
11312 *_INLINE) new_flag="-D$x=ALL_C_INLINE";;
11313 *) new_flag="-D$x""_INLINE=ALL_C_INLINE";;
11314 esac
11315 if test x"$sim_inline" = x""; then
11316 sim_inline="$new_flag"
11317 else
11318 sim_inline="$sim_inline $new_flag"
11319 fi
11320 done;;
11321esac
11322if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then
11323 echo "Setting inline flags = $sim_inline" 6>&1
11324fi
11325fi
11326
11327
11328
6efef468 11329
81ecdfbb
RW
11330# Check whether --with-pkgversion was given.
11331if test "${with_pkgversion+set}" = set; then :
11332 withval=$with_pkgversion; case "$withval" in
d0ac1c44 11333 yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;;
6efef468
JM
11334 no) PKGVERSION= ;;
11335 *) PKGVERSION="($withval) " ;;
11336 esac
11337else
bf12d44e 11338 PKGVERSION="(SIM) "
6efef468 11339
81ecdfbb
RW
11340fi
11341
6efef468
JM
11342
11343
11344
11345
81ecdfbb
RW
11346# Check whether --with-bugurl was given.
11347if test "${with_bugurl+set}" = set; then :
11348 withval=$with_bugurl; case "$withval" in
d0ac1c44 11349 yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;;
6efef468
JM
11350 no) BUGURL=
11351 ;;
11352 *) BUGURL="$withval"
11353 ;;
11354 esac
11355else
dfb856ba 11356 BUGURL="https://www.gnu.org/software/gdb/bugs/"
6efef468 11357
81ecdfbb
RW
11358fi
11359
6efef468
JM
11360 case ${BUGURL} in
11361 "")
11362 REPORT_BUGS_TO=
11363 REPORT_BUGS_TEXI=
11364 ;;
11365 *)
11366 REPORT_BUGS_TO="<$BUGURL>"
11367 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
11368 ;;
11369 esac;
11370
11371
11372
11373
11374cat >>confdefs.h <<_ACEOF
11375#define PKGVERSION "$PKGVERSION"
11376_ACEOF
11377
11378
11379cat >>confdefs.h <<_ACEOF
11380#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
11381_ACEOF
11382
11383
cd0fc7c3 11384
c906108c 11385
c906108c 11386
c906108c
SS
11387wire_alignment="NONSTRICT_ALIGNMENT"
11388default_alignment=""
11389
81ecdfbb
RW
11390# Check whether --enable-sim-alignment was given.
11391if test "${enable_sim_alignment+set}" = set; then :
11392 enableval=$enable_sim_alignment; case "${enableval}" in
c906108c
SS
11393 strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";;
11394 nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";;
11395 forced | FORCED) sim_alignment="-DWITH_ALIGNMENT=FORCED_ALIGNMENT";;
11396 yes) if test x"$wire_alignment" != x; then
11397 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11398 else
11399 if test x"$default_alignment" != x; then
11400 sim_alignment="-DWITH_ALIGNMENT=${default_alignment}"
11401 else
11402 echo "No hard-wired alignment for target $target" 1>&6
11403 sim_alignment="-DWITH_ALIGNMENT=0"
11404 fi
11405 fi;;
11406 no) if test x"$default_alignment" != x; then
11407 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11408 else
11409 if test x"$wire_alignment" != x; then
11410 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${wire_alignment}"
11411 else
11412 echo "No default alignment for target $target" 1>&6
11413 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=0"
11414 fi
11415 fi;;
d0ac1c44 11416 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-alignment\"" "$LINENO" 5; sim_alignment="";;
c906108c
SS
11417esac
11418if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then
11419 echo "Setting alignment flags = $sim_alignment" 6>&1
11420fi
11421else
11422 if test x"$default_alignment" != x; then
11423 sim_alignment="-DWITH_DEFAULT_ALIGNMENT=${default_alignment}"
11424else
11425 if test x"$wire_alignment" != x; then
11426 sim_alignment="-DWITH_ALIGNMENT=${wire_alignment}"
11427 else
11428 sim_alignment=
11429 fi
11430fi
81ecdfbb
RW
11431fi
11432
c906108c 11433
2232061b
MF
11434# Check whether --enable-werror was given.
11435if test "${enable_werror+set}" = set; then :
11436 enableval=$enable_werror; case "${enableval}" in
11437 yes | y) ERROR_ON_WARNING="yes" ;;
11438 no | n) ERROR_ON_WARNING="no" ;;
d0ac1c44 11439 *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;;
2232061b
MF
11440 esac
11441fi
11442
11443
11444# Enable -Werror by default when using gcc
11445if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
11446 ERROR_ON_WARNING=yes
51216631 11447fi
2232061b
MF
11448
11449WERROR_CFLAGS=""
2232061b 11450
2232061b 11451build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
1a8a700e 11452-Wpointer-sign \
2232061b 11453-Wno-unused -Wunused-value -Wunused-function \
1a8a700e
MF
11454-Wno-switch -Wno-char-subscripts -Wmissing-prototypes
11455-Wdeclaration-after-statement -Wempty-body -Wmissing-parameter-type \
11456-Wold-style-declaration -Wold-style-definition"
2232061b
MF
11457
11458# Enable -Wno-format by default when using gcc on mingw since many
11459# GCC versions complain about %I64.
11460case "${host}" in
11461 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
d3685d60 11462 *) build_warnings="$build_warnings -Wformat-nonliteral" ;;
2232061b
MF
11463esac
11464
81ecdfbb
RW
11465# Check whether --enable-build-warnings was given.
11466if test "${enable_build_warnings+set}" = set; then :
11467 enableval=$enable_build_warnings; case "${enableval}" in
c8cca39f
AC
11468 yes) ;;
11469 no) build_warnings="-w";;
11470 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11471 build_warnings="${build_warnings} ${t}";;
11472 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
11473 build_warnings="${t} ${build_warnings}";;
11474 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
11475esac
11476if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
11477 echo "Setting compiler warning flags = $build_warnings" 6>&1
11478fi
81ecdfbb
RW
11479fi
11480# Check whether --enable-sim-build-warnings was given.
11481if test "${enable_sim_build_warnings+set}" = set; then :
11482 enableval=$enable_sim_build_warnings; case "${enableval}" in
c906108c
SS
11483 yes) ;;
11484 no) build_warnings="-w";;
11485 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f 11486 build_warnings="${build_warnings} ${t}";;
c906108c 11487 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
c8cca39f
AC
11488 build_warnings="${t} ${build_warnings}";;
11489 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
c906108c
SS
11490esac
11491if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
c8cca39f
AC
11492 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
11493fi
81ecdfbb
RW
11494fi
11495WARN_CFLAGS=""
d4f3574e
SS
11496if test "x${build_warnings}" != x -a "x$GCC" = xyes
11497then
81ecdfbb
RW
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler warning flags" >&5
11499$as_echo_n "checking compiler warning flags... " >&6; }
c8cca39f
AC
11500 # Separate out the -Werror flag as some files just cannot be
11501 # compiled with it enabled.
11502 for w in ${build_warnings}; do
11503 case $w in
11504 -Werr*) WERROR_CFLAGS=-Werror ;;
11505 *) # Check that GCC accepts it
11506 saved_CFLAGS="$CFLAGS"
1f195bc3 11507 CFLAGS="$CFLAGS -Werror $w"
81ecdfbb 11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 11509/* end confdefs.h. */
c8cca39f 11510
b7026657
AC
11511int
11512main ()
11513{
c8cca39f 11514
b7026657
AC
11515 ;
11516 return 0;
11517}
11518_ACEOF
81ecdfbb 11519if ac_fn_c_try_compile "$LINENO"; then :
c8cca39f 11520 WARN_CFLAGS="${WARN_CFLAGS} $w"
c8cca39f 11521fi
81ecdfbb 11522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
c8cca39f
AC
11523 CFLAGS="$saved_CFLAGS"
11524 esac
11525 done
2232061b
MF
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
11527$as_echo "${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6; }
c906108c
SS
11528fi
11529
11530
e6c674b8 11531default_sim_reserved_bits="1"
81ecdfbb
RW
11532# Check whether --enable-sim-reserved-bits was given.
11533if test "${enable_sim_reserved_bits+set}" = set; then :
11534 enableval=$enable_sim_reserved_bits; case "${enableval}" in
e6c674b8
CD
11535 yes) sim_reserved_bits="-DWITH_RESERVED_BITS=1";;
11536 no) sim_reserved_bits="-DWITH_RESERVED_BITS=0";;
d0ac1c44 11537 *) as_fn_error $? "\"--enable-sim-reserved-bits does not take a value\"" "$LINENO" 5; sim_reserved_bits="";;
e6c674b8
CD
11538esac
11539if test x"$silent" != x"yes" && test x"$sim_reserved_bits" != x""; then
11540 echo "Setting reserved flags = $sim_reserved_bits" 6>&1
11541fi
11542else
11543 sim_reserved_bits="-DWITH_RESERVED_BITS=${default_sim_reserved_bits}"
81ecdfbb
RW
11544fi
11545
e6c674b8 11546
c906108c
SS
11547# DEPRECATED
11548#
11549# Instead of defining a `subtarget' macro, code should be checking
11550# the value of {STATE,CPU}_ARCHITECTURE to identify the architecture
11551# in question.
11552#
11553case "${target}" in
4c54fc26 11554 mips64vr*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1" ;;
c906108c 11555 mips*tx39*) SIM_SUBTARGET="-DSUBTARGET_R3900=1";;
109ad085 11556 mips*-sde-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
cc220243 11557 mips*-mti-elf*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
1e799e28
CD
11558 mipsisa32*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
11559 mipsisa64*-*-*) SIM_SUBTARGET="-DTARGET_ENABLE_FR=1";;
c906108c
SS
11560 *) SIM_SUBTARGET="";;
11561esac
11562
11563
11564
11565
11566#
11567# Select the byte order of the target
11568#
11569mips_endian=
11570default_endian=
11571case "${target}" in
1ac72f06
MF
11572 mips64el*-*-*) mips_endian=LITTLE ;;
11573 mips64vr*el-*-*) default_endian=LITTLE ;;
11574 mips64*-*-*) default_endian=BIG ;;
11575 mips16*-*-*) default_endian=BIG ;;
11576 mipsisa32*-*-*) default_endian=BIG ;;
11577 mipsisa64*-*-*) default_endian=BIG ;;
11578 mips*-*-*) default_endian=BIG ;;
11579 *) default_endian=BIG ;;
c906108c
SS
11580esac
11581
11582wire_endian="$mips_endian"
11583default_endian="$default_endian"
81ecdfbb
RW
11584# Check whether --enable-sim-endian was given.
11585if test "${enable_sim_endian+set}" = set; then :
11586 enableval=$enable_sim_endian; case "${enableval}" in
1ac72f06
MF
11587 b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_BIG";;
11588 l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_LITTLE";;
c906108c 11589 yes) if test x"$wire_endian" != x; then
1ac72f06 11590 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c 11591 else
1ac72f06
MF
11592 if test x"$default_endian" != x; then
11593 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
11594 else
11595 echo "No hard-wired endian for target $target" 1>&6
1ac72f06 11596 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
c906108c
SS
11597 fi
11598 fi;;
11599 no) if test x"$default_endian" != x; then
1ac72f06 11600 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
11601 else
11602 if test x"$wire_endian" != x; then
1ac72f06 11603 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c
SS
11604 else
11605 echo "No default endian for target $target" 1>&6
1ac72f06 11606 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_UNKNOWN"
c906108c
SS
11607 fi
11608 fi;;
d0ac1c44 11609 *) as_fn_error $? "\"Unknown value $enableval for --enable-sim-endian\"" "$LINENO" 5; sim_endian="";;
c906108c
SS
11610esac
11611if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then
11612 echo "Setting endian flags = $sim_endian" 6>&1
11613fi
11614else
11615 if test x"$default_endian" != x; then
1ac72f06 11616 sim_endian="-DWITH_DEFAULT_TARGET_BYTE_ORDER=BFD_ENDIAN_${default_endian}"
c906108c
SS
11617else
11618 if test x"$wire_endian" != x; then
1ac72f06 11619 sim_endian="-DWITH_TARGET_BYTE_ORDER=BFD_ENDIAN_${wire_endian}"
c906108c
SS
11620 else
11621 sim_endian=
11622 fi
11623fi
81ecdfbb
RW
11624fi
11625
c906108c
SS
11626
11627
11628
11629#
11630# Select the bitsize of the target
11631#
11632mips_addr_bitsize=
11633case "${target}" in
109ad085 11634 mips*-sde-elf*) mips_bitsize=64 ; mips_msb=63 ;;
cc220243 11635 mips*-mti-elf*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
11636 mips64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
11637 mips16*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
1e799e28
CD
11638 mipsisa32*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
11639 mipsisa64*-*-*) mips_bitsize=64 ; mips_msb=63 ;;
c906108c
SS
11640 mips*-*-*) mips_bitsize=32 ; mips_msb=31 ;;
11641 *) mips_bitsize=64 ; mips_msb=63 ;;
11642esac
11643wire_word_bitsize="$mips_bitsize"
11644wire_word_msb="$mips_msb"
11645wire_address_bitsize="$mips_addr_bitsize"
11646wire_cell_bitsize=""
81ecdfbb
RW
11647# Check whether --enable-sim-bitsize was given.
11648if test "${enable_sim_bitsize+set}" = set; then :
11649 enableval=$enable_sim_bitsize; sim_bitsize=
c906108c
SS
11650case "${enableval}" in
11651 64,63 | 64,63,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63";;
11652 32,31 | 32,31,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31";;
11653 64,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
11654 32,0 | 64,0,* ) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0";;
11655 32) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
11656 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=31"
11657 else
11658 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=32 -DWITH_TARGET_WORD_MSB=0"
11659 fi ;;
11660 64) if test x"$wire_word_msb" != x -a x"$wire_word_msb" != x0; then
11661 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=63"
11662 else
11663 sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=64 -DWITH_TARGET_WORD_MSB=0"
11664 fi ;;
d0ac1c44 11665 *) as_fn_error $? "\"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
11666esac
11667# address bitsize
11668tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9]*,*//"`
11669case x"${tmp}" in
11670 x ) ;;
11671 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=32" ;;
11672 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_ADDRESS_BITSIZE=64" ;;
d0ac1c44 11673 * ) as_fn_error $? "\"--enable-sim-bitsize was given address size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
11674esac
11675# cell bitsize
11676tmp=`echo "${enableval}" | sed -e "s/^[0-9]*,*[0-9*]*,*[0-9]*,*//"`
11677case x"${tmp}" in
11678 x ) ;;
11679 x32 | x32,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=32" ;;
11680 x64 | x64,* ) sim_bitsize="${sim_bitsize} -DWITH_TARGET_CELL_BITSIZE=64" ;;
d0ac1c44 11681 * ) as_fn_error $? "\"--enable-sim-bitsize was given cell size $enableval. Expected 32 or 64\"" "$LINENO" 5 ;;
c906108c
SS
11682esac
11683if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then
11684 echo "Setting bitsize flags = $sim_bitsize" 6>&1
11685fi
11686else
11687 sim_bitsize=""
11688if test x"$wire_word_bitsize" != x; then
11689 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_BITSIZE=$wire_word_bitsize"
11690fi
11691if test x"$wire_word_msb" != x; then
11692 sim_bitsize="$sim_bitsize -DWITH_TARGET_WORD_MSB=$wire_word_msb"
11693fi
11694if test x"$wire_address_bitsize" != x; then
11695 sim_bitsize="$sim_bitsize -DWITH_TARGET_ADDRESS_BITSIZE=$wire_address_bitsize"
11696fi
11697if test x"$wire_cell_bitsize" != x; then
11698 sim_bitsize="$sim_bitsize -DWITH_TARGET_CELL_BITSIZE=$wire_cell_bitsize"
11699fi
81ecdfbb
RW
11700fi
11701
c906108c
SS
11702
11703
11704
11705#
11706# Select the floating hardware support of the target
11707#
11708mips_fpu=HARDWARE_FLOATING_POINT
11709mips_fpu_bitsize=
11710case "${target}" in
4b5d35ee 11711 mips*tx39*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
109ad085 11712 mips*-sde-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
cc220243 11713 mips*-mti-elf*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
11714 mips64*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
11715 mips16*-*-*) mips_fpu=HARD_FLOATING_POINT ;;
1e799e28
CD
11716 mipsisa32*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
11717 mipsisa64*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=64 ;;
c906108c
SS
11718 mips*-*-*) mips_fpu=HARD_FLOATING_POINT ; mips_fpu_bitsize=32 ;;
11719 *) mips_fpu=HARD_FLOATING_POINT ;;
11720esac
11721
11722default_sim_float="$mips_fpu"
11723default_sim_float_bitsize="$mips_fpu_bitsize"
81ecdfbb
RW
11724# Check whether --enable-sim-float was given.
11725if test "${enable_sim_float+set}" = set; then :
11726 enableval=$enable_sim_float; case "${enableval}" in
c906108c
SS
11727 yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";;
11728 no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";;
11729 32) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=32";;
11730 64) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT -DWITH_TARGET_FLOATING_POINT_BITSIZE=64";;
d0ac1c44 11731 *) as_fn_error $? "\"Unknown value $enableval passed to --enable-sim-float\"" "$LINENO" 5; sim_float="";;
c906108c
SS
11732esac
11733if test x"$silent" != x"yes" && test x"$sim_float" != x""; then
11734 echo "Setting float flags = $sim_float" 6>&1
11735fi
11736else
b7026657 11737
c906108c
SS
11738sim_float=
11739if test x"${default_sim_float}" != x""; then
11740 sim_float="-DWITH_FLOATING_POINT=${default_sim_float}"
11741fi
11742if test x"${default_sim_float_bitsize}" != x""; then
11743 sim_float="$sim_float -DWITH_TARGET_FLOATING_POINT_BITSIZE=${default_sim_float_bitsize}"
11744fi
11745
81ecdfbb
RW
11746fi
11747
c906108c
SS
11748
11749
11750
c906108c
SS
11751#
11752# Select the IGEN architecture
11753#
11754sim_gen=IGEN
11755sim_igen_machine="-M mipsIV"
139181c8 11756sim_m16_machine="-M mips16,mipsIII"
c906108c
SS
11757sim_igen_filter="32,64,f"
11758sim_m16_filter="16"
4c54fc26
CD
11759sim_mach_default="mips8000"
11760
c906108c
SS
11761case "${target}" in
11762 mips*tx39*) sim_gen=IGEN
11763 sim_igen_filter="32,f"
11764 sim_igen_machine="-M r3900"
11765 ;;
11766 mips64vr43*-*-*) sim_gen=IGEN
11767 sim_igen_machine="-M mipsIV"
4c54fc26 11768 sim_mach_default="mips8000"
c906108c
SS
11769 ;;
11770 mips64vr5*-*-*) sim_gen=IGEN
11771 sim_igen_machine="-M vr5000"
4c54fc26 11772 sim_mach_default="mips5000"
c906108c
SS
11773 ;;
11774 mips64vr41*) sim_gen=M16
11775 sim_igen_machine="-M vr4100"
11776 sim_m16_machine="-M vr4100"
11777 sim_igen_filter="32,64,f"
11778 sim_m16_filter="16"
4c54fc26 11779 sim_mach_default="mips4100"
c906108c 11780 ;;
4c54fc26
CD
11781 mips64vr-*-* | mips64vrel-*-*)
11782 sim_gen=MULTI
11783 sim_multi_configs="\
11784 vr4100:mipsIII,mips16,vr4100:32,64:mips4100,mips4111\
11785 vr4120:mipsIII,mips16,vr4120:32,64:mips4120\
11786 vr5000:mipsIV:32,64,f:mips4300,mips5000\
11787 vr5400:mipsIV,vr5400:32,64,f:mips5400\
11788 vr5500:mipsIV,vr5500:32,64,f:mips5500"
11789 sim_multi_default=mips5000
11790 ;;
cc220243 11791 mips*-sde-elf* | mips*-mti-elf*)
8e394ffc
AB
11792 sim_gen=MULTI
11793 sim_multi_configs="\
11794 micromips:micromips64,micromipsdsp:32,64,f:mips_micromips\
11795 mips64r2:mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,64,f:mipsisa64r2"
11796 sim_multi_default=mipsisa64r2
109ad085 11797 ;;
c906108c
SS
11798 mips64*-*-*) sim_igen_filter="32,64,f"
11799 sim_gen=IGEN
11800 ;;
11801 mips16*-*-*) sim_gen=M16
11802 sim_igen_filter="32,64,f"
11803 sim_m16_filter="16"
11804 ;;
8e394ffc
AB
11805 mipsisa32r2*-*-*) sim_gen=MULTI
11806 sim_multi_configs="\
11807 micromips:micromips32,micromipsdsp:32,f:mips_micromips\
11808 mips32r2:mips32r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2,smartmips:32,f:mipsisa32r2"
11809 sim_multi_default=mipsisa32r2
e70cb6cd 11810 ;;
d5fb0879
RS
11811 mipsisa32*-*-*) sim_gen=M16
11812 sim_igen_machine="-M mips32,mips16,mips16e,smartmips"
11813 sim_m16_machine="-M mips16,mips16e,mips32"
11814 sim_igen_filter="32,f"
11815 sim_mach_default="mipsisa32"
1e799e28 11816 ;;
d5fb0879
RS
11817 mipsisa64r2*-*-*) sim_gen=M16
11818 sim_igen_machine="-M mips64r2,mips3d,mips16,mips16e,mdmx,dsp,dsp2"
11819 sim_m16_machine="-M mips16,mips16e,mips64r2"
11820 sim_igen_filter="32,64,f"
11821 sim_mach_default="mipsisa64r2"
e70cb6cd 11822 ;;
7cbea089 11823 mipsisa64sb1*-*-*) sim_gen=IGEN
109ad085 11824 sim_igen_machine="-M mips64,mips3d,sb1"
7cbea089 11825 sim_igen_filter="32,64,f"
4c54fc26 11826 sim_mach_default="mips_sb1"
7cbea089 11827 ;;
d5fb0879
RS
11828 mipsisa64*-*-*) sim_gen=M16
11829 sim_igen_machine="-M mips64,mips3d,mips16,mips16e,mdmx"
11830 sim_m16_machine="-M mips16,mips16e,mips64"
11831 sim_igen_filter="32,64,f"
11832 sim_mach_default="mipsisa64"
1e799e28 11833 ;;
109ad085 11834 mips*lsi*) sim_gen=M16
c906108c
SS
11835 sim_igen_machine="-M mipsIII,mips16"
11836 sim_m16_machine="-M mips16,mipsIII"
11837 sim_igen_filter="32,f"
11838 sim_m16_filter="16"
4c54fc26 11839 sim_mach_default="mips4000"
109ad085 11840 ;;
c906108c
SS
11841 mips*-*-*) sim_gen=IGEN
11842 sim_igen_filter="32,f"
11843 ;;
11844esac
4c54fc26
CD
11845
11846# The MULTI generator can combine several simulation engines into one.
11847# executable. A configuration which uses the MULTI should set two
11848# variables: ${sim_multi_configs} and ${sim_multi_default}.
11849#
11850# ${sim_multi_configs} is the list of engines to build. Each
11851# space-separated entry has the form NAME:MACHINE:FILTER:BFDMACHS,
11852# where:
11853#
11854# - NAME is a C-compatible prefix for the engine,
11855# - MACHINE is a -M argument,
11856# - FILTER is a -F argument, and
11857# - BFDMACHS is a comma-separated list of bfd machines that the
11858# simulator can run.
11859#
11860# Each entry will have a separate simulation engine whose prefix is
11861# m32<NAME>. If the machine list includes "mips16", there will also
11862# be a mips16 engine, prefix m16<NAME>. The mips16 engine will be
11863# generated using the same machine list as the 32-bit version,
11864# but the filter will be "16" instead of FILTER.
11865#
11866# The simulator compares the bfd mach against BFDMACHS to decide
11867# which engine to use. Entries in BFDMACHS should be bfd_mach
11868# values with "bfd_mach_" removed. ${sim_multi_default} says
11869# which entry should be the default.
11870if test ${sim_gen} = MULTI; then
11871
11872 # Simple sanity check.
11873 if test -z "${sim_multi_configs}" || test -z "${sim_multi_default}"; then
d0ac1c44 11874 as_fn_error $? "Error in configure.ac: MULTI simulator not set up correctly" "$LINENO" 5
4c54fc26
CD
11875 fi
11876
11877 # Start in a known state.
11878 rm -f multi-include.h multi-run.c
11879 sim_multi_flags=
11880 sim_multi_src=
8e394ffc 11881 sim_multi_obj=
4c54fc26
CD
11882 sim_multi_igen_configs=
11883 sim_seen_default=no
11884
11885 cat << __EOF__ > multi-run.c
11886/* Main entry point for MULTI simulators.
46f900c0 11887 Copyright (C) 2003-2021 Free Software Foundation, Inc.
4c54fc26
CD
11888
11889 This program is free software; you can redistribute it and/or modify
11890 it under the terms of the GNU General Public License as published by
35ee6e1e 11891 the Free Software Foundation; either version 3 of the License, or
4c54fc26
CD
11892 (at your option) any later version.
11893
11894 This program is distributed in the hope that it will be useful,
11895 but WITHOUT ANY WARRANTY; without even the implied warranty of
11896 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11897 GNU General Public License for more details.
11898
11899 You should have received a copy of the GNU General Public License
35ee6e1e 11900 along with this program. If not, see <http://www.gnu.org/licenses/>.
4c54fc26
CD
11901
11902 --
11903
11904 This file was generated by sim/mips/configure. */
11905
11906#include "sim-main.h"
11907#include "multi-include.h"
8e394ffc
AB
11908#include "elf-bfd.h"
11909#include "elf/mips.h"
4c54fc26
CD
11910
11911#define SD sd
11912#define CPU cpu
11913
11914void
11915sim_engine_run (SIM_DESC sd,
11916 int next_cpu_nr,
11917 int nr_cpus,
11918 int signal) /* ignore */
11919{
11920 int mach;
11921
11922 if (STATE_ARCHITECTURE (sd) == NULL)
11923 mach = bfd_mach_${sim_multi_default};
1554f758 11924 else if (elf_elfheader (STATE_PROG_BFD (sd))->e_flags
8e394ffc
AB
11925 & EF_MIPS_ARCH_ASE_MICROMIPS)
11926 mach = bfd_mach_mips_micromips;
4c54fc26
CD
11927 else
11928 mach = STATE_ARCHITECTURE (SD)->mach;
11929
11930 switch (mach)
11931 {
11932__EOF__
11933
11934 for fc in ${sim_multi_configs}; do
11935
11936 # Split up the entry. ${c} contains the first three elements.
11937 # Note: outer sqaure brackets are m4 quotes.
11938 c=`echo ${fc} | sed 's/:[^:]*$//'`
11939 bfdmachs=`echo ${fc} | sed 's/.*://'`
11940 name=`echo ${c} | sed 's/:.*//'`
11941 machine=`echo ${c} | sed 's/.*:\(.*\):.*/\1/'`
11942 filter=`echo ${c} | sed 's/.*://'`
11943
11944 # Build the following lists:
11945 #
11946 # sim_multi_flags: all -M and -F flags used by the simulator
11947 # sim_multi_src: all makefile-generated source files
11948 # sim_multi_obj: the objects for ${sim_multi_src}
11949 # sim_multi_igen_configs: igen configuration strings.
11950 #
11951 # Each entry in ${sim_multi_igen_configs} is a prefix (m32
11952 # or m16) followed by the NAME, MACHINE and FILTER part of
11953 # the ${sim_multi_configs} entry.
11954 sim_multi_flags="${sim_multi_flags} -F ${filter} -M ${machine}"
11955
8e394ffc 11956 # Check whether special handling is needed.
4c54fc26
CD
11957 case ${c} in
11958 *:*mips16*:*)
11959 # Run igen twice, once for normal mode and once for mips16.
11960 ws="m32 m16"
11961
11962 # The top-level function for the mips16 simulator is
11963 # in a file m16${name}_run.c, generated by the
11964 # tmp-run-multi Makefile rule.
11965 sim_multi_src="${sim_multi_src} m16${name}_run.c"
11966 sim_multi_obj="${sim_multi_obj} m16${name}_run.o"
11967 sim_multi_flags="${sim_multi_flags} -F 16"
11968 ;;
8e394ffc
AB
11969 *:*micromips32*:*)
11970 # Run igen thrice, once for micromips32, once for micromips16,
11971 # and once for m32.
11972 ws="micromips_m32 micromips16 micromips32"
11973
11974 # The top-level function for the micromips simulator is
11975 # in a file micromips${name}_run.c, generated by the
11976 # tmp-run-multi Makefile rule.
11977 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
11978 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
11979 sim_multi_flags="${sim_multi_flags} -F 16,32"
11980 ;;
11981 *:*micromips64*:*)
11982 # Run igen thrice, once for micromips64, once for micromips16,
11983 # and once for m64.
11984 ws="micromips_m64 micromips16 micromips64"
11985
11986 # The top-level function for the micromips simulator is
11987 # in a file micromips${name}_run.c, generated by the
11988 # tmp-run-multi Makefile rule.
11989 sim_multi_src="${sim_multi_src} micromips${name}_run.c"
11990 sim_multi_obj="${sim_multi_obj} micromips${name}_run.o"
11991 sim_multi_flags="${sim_multi_flags} -F 16,32,64"
11992 ;;
4c54fc26
CD
11993 *)
11994 ws=m32
11995 ;;
11996 esac
11997
11998 # Now add the list of igen-generated files to ${sim_multi_src}
11999 # and ${sim_multi_obj}.
12000 for w in ${ws}; do
12001 for base in engine icache idecode model semantics support; do
12002 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.c"
12003 sim_multi_src="${sim_multi_src} ${w}${name}_${base}.h"
12004 sim_multi_obj="${sim_multi_obj} ${w}${name}_${base}.o"
12005 done
12006 sim_multi_igen_configs="${sim_multi_igen_configs} ${w}${c}"
12007 done
12008
12009 # Add an include for the engine.h file. This file declares the
12010 # top-level foo_engine_run() function.
12011 echo "#include \"${w}${name}_engine.h\"" >> multi-include.h
12012
12013 # Add case statements for this engine to sim_engine_run().
12014 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
12015 echo " case bfd_mach_${mach}:" >> multi-run.c
12016 if test ${mach} = ${sim_multi_default}; then
12017 echo " default:" >> multi-run.c
12018 sim_seen_default=yes
12019 fi
12020 done
12021 echo " ${w}${name}_engine_run (sd, next_cpu_nr, nr_cpus, signal);" \
12022 >> multi-run.c
12023 echo " break;" >> multi-run.c
12024 done
12025
12026 # Check whether we added a 'default:' label.
12027 if test ${sim_seen_default} = no; then
d0ac1c44 12028 as_fn_error $? "Error in configure.ac: \${sim_multi_configs} doesn't have an entry for \${sim_multi_default}" "$LINENO" 5
4c54fc26
CD
12029 fi
12030
12031 cat << __EOF__ >> multi-run.c
12032 }
12033}
12034
12035int
12036mips_mach_multi (SIM_DESC sd)
12037{
12038 if (STATE_ARCHITECTURE (sd) == NULL)
12039 return bfd_mach_${sim_multi_default};
12040
12041 switch (STATE_ARCHITECTURE (SD)->mach)
12042 {
12043__EOF__
12044
12045 # Add case statements for this engine to mips_mach_multi().
12046 for fc in ${sim_multi_configs}; do
12047
12048 # Split up the entry. ${c} contains the first three elements.
12049 # Note: outer sqaure brackets are m4 quotes.
12050 c=`echo ${fc} | sed 's/:[^:]*$//'`
12051 bfdmachs=`echo ${fc} | sed 's/.*://'`
12052
12053 for mach in `echo ${bfdmachs} | sed 's/,/ /g'`; do
12054 echo " case bfd_mach_${mach}:" >> multi-run.c
12055 done
12056 done
12057
12058 cat << __EOF__ >> multi-run.c
12059 return (STATE_ARCHITECTURE (SD)->mach);
12060 default:
12061 return bfd_mach_${sim_multi_default};
12062 }
12063}
12064__EOF__
12065
12066 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_MULTI"
12067else
12068 # For clean-extra
12069 sim_multi_src=doesnt-exist.c
12070
12071 if test x"${sim_mach_default}" = x""; then
d0ac1c44 12072 as_fn_error $? "Error in configure.ac: \${sim_mach_default} not defined" "$LINENO" 5
4c54fc26
CD
12073 fi
12074 SIM_SUBTARGET="$SIM_SUBTARGET -DMIPS_MACH_DEFAULT=bfd_mach_${sim_mach_default}"
12075fi
c906108c
SS
12076sim_igen_flags="-F ${sim_igen_filter} ${sim_igen_machine} ${sim_igen_smp}"
12077sim_m16_flags=" -F ${sim_m16_filter} ${sim_m16_machine} ${sim_igen_smp}"
8e394ffc
AB
12078sim_micromips16_flags=" -F ${sim_micromips16_filter} ${sim_micromips16_machine} ${sim_igen_smp}"
12079sim_micromips_flags=" -F ${sim_micromips_filter} ${sim_micromips_machine} ${sim_igen_smp}"
c906108c
SS
12080
12081
12082
12083
12084
4c54fc26
CD
12085
12086
12087
12088
c906108c
SS
12089#
12090# Add simulated hardware devices
12091#
c906108c 12092
9b1af85c 12093hardware="cfi core pal glue tx3904cpu tx3904irc tx3904tmr tx3904sio"
c906108c
SS
12094sim_hw_cflags="-DWITH_HW=1"
12095sim_hw="$hardware"
12096sim_hw_objs="\$(SIM_COMMON_HW_OBJS) `echo $sim_hw | sed -e 's/\([^ ][^ ]*\)/dv-\1.o/g'`"
1517bd27 12097
81ecdfbb
RW
12098# Check whether --enable-sim-hardware was given.
12099if test "${enable_sim_hardware+set}" = set; then :
12100 enableval=$enable_sim_hardware;
30452bbe 12101else
9d903352 12102 enable_sim_hardware="yes"
1517bd27
MF
12103fi
12104
12105case ${enable_sim_hardware} in
64dd13df
MF
12106 yes|no) ;;
12107 ,*) hardware="${hardware} `echo ${enableval} | sed -e 's/,/ /'`";;
12108 *,) hardware="`echo ${enableval} | sed -e 's/,/ /'` ${hardware}";;
12109 *) hardware="`echo ${enableval} | sed -e 's/,/ /'`"'';;
c906108c 12110esac
1517bd27 12111
64dd13df 12112if test "$enable_sim_hardware" = no; then
c906108c
SS
12113 sim_hw_objs=
12114 sim_hw_cflags="-DWITH_HW=0"
12115 sim_hw=
12116else
12117 sim_hw_cflags="-DWITH_HW=1"
12118 # remove duplicates
12119 sim_hw=""
12120 sim_hw_objs="\$(SIM_COMMON_HW_OBJS)"
b3a3ffef
HPN
12121 for i in $hardware ; do
12122 case " $sim_hw " in
c906108c
SS
12123 *" $i "*) ;;
12124 *) sim_hw="$sim_hw $i" ; sim_hw_objs="$sim_hw_objs dv-$i.o";;
12125 esac
12126 done
3be31516 12127 # mingw does not support sockser
3be31516
JS
12128 case ${host} in
12129 *mingw*) ;;
49cd1634
MF
12130 *) # TODO: We don't add dv-sockser to sim_hw as it is not a "real" device
12131 # that you instatiate. Instead, other code will call into it directly.
12132 # At some point, we should convert it over.
12133 sim_hw_objs="$sim_hw_objs dv-sockser.o"
3be31516
JS
12134
12135cat >>confdefs.h <<_ACEOF
12136#define HAVE_DV_SOCKSER 1
12137_ACEOF
12138
12139 ;;
12140 esac
1517bd27
MF
12141 if test x"$silent" != x"yes"; then
12142 echo "Setting hardware to $sim_hw_cflags, $sim_hw, $sim_hw_objs"
3be31516 12143 fi
1517bd27
MF
12144 case " $hardware " in
12145 *" cfi "*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log2 in -lm" >&5
4399a56b 12146$as_echo_n "checking for log2 in -lm... " >&6; }
d0ac1c44 12147if ${ac_cv_lib_m_log2+:} false; then :
4399a56b
MF
12148 $as_echo_n "(cached) " >&6
12149else
12150 ac_check_lib_save_LIBS=$LIBS
12151LIBS="-lm $LIBS"
12152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153/* end confdefs.h. */
12154
12155/* Override any GCC internal prototype to avoid an error.
12156 Use char because int might match the return type of a GCC
12157 builtin and then its argument prototype would still apply. */
12158#ifdef __cplusplus
12159extern "C"
12160#endif
12161char log2 ();
12162int
12163main ()
12164{
12165return log2 ();
12166 ;
12167 return 0;
12168}
12169_ACEOF
12170if ac_fn_c_try_link "$LINENO"; then :
12171 ac_cv_lib_m_log2=yes
12172else
12173 ac_cv_lib_m_log2=no
12174fi
12175rm -f core conftest.err conftest.$ac_objext \
12176 conftest$ac_exeext conftest.$ac_ext
12177LIBS=$ac_check_lib_save_LIBS
12178fi
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log2" >&5
12180$as_echo "$ac_cv_lib_m_log2" >&6; }
d0ac1c44 12181if test "x$ac_cv_lib_m_log2" = xyes; then :
4399a56b
MF
12182 cat >>confdefs.h <<_ACEOF
12183#define HAVE_LIBM 1
12184_ACEOF
12185
12186 LIBS="-lm $LIBS"
12187
12188fi
12189;;
1517bd27
MF
12190 esac
12191fi
4399a56b 12192
c906108c 12193
c906108c 12194
81ecdfbb
RW
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12196$as_echo_n "checking for X... " >&6; }
b7026657 12197
c906108c 12198
81ecdfbb
RW
12199# Check whether --with-x was given.
12200if test "${with_x+set}" = set; then :
12201 withval=$with_x;
12202fi
c906108c
SS
12203
12204# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12205if test "x$with_x" = xno; then
12206 # The user explicitly disabled X.
12207 have_x=disabled
12208else
81ecdfbb 12209 case $x_includes,$x_libraries in #(
d0ac1c44
SM
12210 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
12211 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
81ecdfbb 12212 $as_echo_n "(cached) " >&6
c906108c
SS
12213else
12214 # One or both of the vars are not set, and there is no cached value.
b7026657 12215ac_x_includes=no ac_x_libraries=no
81ecdfbb 12216rm -f -r conftest.dir
b7026657
AC
12217if mkdir conftest.dir; then
12218 cd conftest.dir
b7026657 12219 cat >Imakefile <<'_ACEOF'
81ecdfbb
RW
12220incroot:
12221 @echo incroot='${INCROOT}'
12222usrlibdir:
12223 @echo usrlibdir='${USRLIBDIR}'
12224libdir:
12225 @echo libdir='${LIBDIR}'
12226_ACEOF
12227 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
d0ac1c44 12228 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
81ecdfbb
RW
12229 for ac_var in incroot usrlibdir libdir; do
12230 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12231 done
c906108c 12232 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
81ecdfbb
RW
12233 for ac_extension in a so sl dylib la dll; do
12234 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12235 test -f "$ac_im_libdir/libX11.$ac_extension"; then
b7026657 12236 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
12237 fi
12238 done
12239 # Screen out bogus values from the imake configuration. They are
12240 # bogus both because they are the default anyway, and because
12241 # using them would break gcc on systems where it needs fixed includes.
b7026657 12242 case $ac_im_incroot in
81ecdfbb 12243 /usr/include) ac_x_includes= ;;
b7026657 12244 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 12245 esac
b7026657 12246 case $ac_im_usrlibdir in
81ecdfbb 12247 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
b7026657 12248 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
12249 esac
12250 fi
12251 cd ..
81ecdfbb 12252 rm -f -r conftest.dir
c906108c
SS
12253fi
12254
b7026657
AC
12255# Standard set of common directories for X headers.
12256# Check X11 before X11Rn because it is often a symlink to the current release.
12257ac_x_header_dirs='
12258/usr/X11/include
81ecdfbb 12259/usr/X11R7/include
b7026657
AC
12260/usr/X11R6/include
12261/usr/X11R5/include
12262/usr/X11R4/include
12263
12264/usr/include/X11
81ecdfbb 12265/usr/include/X11R7
b7026657
AC
12266/usr/include/X11R6
12267/usr/include/X11R5
12268/usr/include/X11R4
12269
12270/usr/local/X11/include
81ecdfbb 12271/usr/local/X11R7/include
b7026657
AC
12272/usr/local/X11R6/include
12273/usr/local/X11R5/include
12274/usr/local/X11R4/include
12275
12276/usr/local/include/X11
81ecdfbb 12277/usr/local/include/X11R7
b7026657
AC
12278/usr/local/include/X11R6
12279/usr/local/include/X11R5
12280/usr/local/include/X11R4
12281
12282/usr/X386/include
12283/usr/x386/include
12284/usr/XFree86/include/X11
12285
12286/usr/include
12287/usr/local/include
12288/usr/unsupported/include
12289/usr/athena/include
12290/usr/local/x11r5/include
12291/usr/lpp/Xamples/include
12292
12293/usr/openwin/include
12294/usr/openwin/share/include'
12295
12296if test "$ac_x_includes" = no; then
81ecdfbb 12297 # Guess where to find include files, by looking for Xlib.h.
c906108c 12298 # First, try using that file with no special directory specified.
81ecdfbb 12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 12300/* end confdefs.h. */
81ecdfbb 12301#include <X11/Xlib.h>
b7026657 12302_ACEOF
81ecdfbb 12303if ac_fn_c_try_cpp "$LINENO"; then :
c906108c
SS
12304 # We can compile using X headers with no special include directory.
12305ac_x_includes=
12306else
b7026657 12307 for ac_dir in $ac_x_header_dirs; do
81ecdfbb 12308 if test -r "$ac_dir/X11/Xlib.h"; then
b7026657
AC
12309 ac_x_includes=$ac_dir
12310 break
12311 fi
12312done
c906108c 12313fi
d0ac1c44 12314rm -f conftest.err conftest.i conftest.$ac_ext
b7026657 12315fi # $ac_x_includes = no
c906108c 12316
b7026657 12317if test "$ac_x_libraries" = no; then
c906108c 12318 # Check for the libraries.
c906108c
SS
12319 # See if we find them without any special options.
12320 # Don't add to $LIBS permanently.
b7026657 12321 ac_save_LIBS=$LIBS
81ecdfbb
RW
12322 LIBS="-lX11 $LIBS"
12323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657 12324/* end confdefs.h. */
81ecdfbb 12325#include <X11/Xlib.h>
b7026657
AC
12326int
12327main ()
12328{
81ecdfbb 12329XrmInitialize ()
b7026657
AC
12330 ;
12331 return 0;
12332}
12333_ACEOF
81ecdfbb 12334if ac_fn_c_try_link "$LINENO"; then :
b7026657 12335 LIBS=$ac_save_LIBS
c906108c
SS
12336# We can link X programs with no special library path.
12337ac_x_libraries=
12338else
81ecdfbb
RW
12339 LIBS=$ac_save_LIBS
12340for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
b7026657 12341do
81ecdfbb
RW
12342 # Don't even attempt the hair of trying to link an X program!
12343 for ac_extension in a so sl dylib la dll; do
12344 if test -r "$ac_dir/libX11.$ac_extension"; then
12345 ac_x_libraries=$ac_dir
12346 break 2
12347 fi
12348 done
12349done
b7026657 12350fi
81ecdfbb
RW
12351rm -f core conftest.err conftest.$ac_objext \
12352 conftest$ac_exeext conftest.$ac_ext
12353fi # $ac_x_libraries = no
b7026657 12354
81ecdfbb
RW
12355case $ac_x_includes,$ac_x_libraries in #(
12356 no,* | *,no | *\'*)
12357 # Didn't find X, or a directory has "'" in its name.
12358 ac_cv_have_x="have_x=no";; #(
12359 *)
12360 # Record where we found X for the cache.
12361 ac_cv_have_x="have_x=yes\
12362 ac_x_includes='$ac_x_includes'\
12363 ac_x_libraries='$ac_x_libraries'"
12364esac
b7026657 12365fi
81ecdfbb
RW
12366;; #(
12367 *) have_x=yes;;
12368 esac
12369 eval "$ac_cv_have_x"
12370fi # $with_x != no
b7026657 12371
81ecdfbb
RW
12372if test "$have_x" != yes; then
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12374$as_echo "$have_x" >&6; }
12375 no_x=yes
b7026657 12376else
81ecdfbb
RW
12377 # If each of the values was on the command line, it overrides each guess.
12378 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12379 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12380 # Update the cache value to reflect the command line values.
12381 ac_cv_have_x="have_x=yes\
12382 ac_x_includes='$x_includes'\
12383 ac_x_libraries='$x_libraries'"
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12385$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
b7026657 12386fi
b7026657 12387
81ecdfbb 12388
81ecdfbb
RW
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
12390$as_echo_n "checking for fabs in -lm... " >&6; }
d0ac1c44 12391if ${ac_cv_lib_m_fabs+:} false; then :
81ecdfbb 12392 $as_echo_n "(cached) " >&6
b7026657
AC
12393else
12394 ac_check_lib_save_LIBS=$LIBS
12395LIBS="-lm $LIBS"
81ecdfbb 12396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b7026657
AC
12397/* end confdefs.h. */
12398
81ecdfbb
RW
12399/* Override any GCC internal prototype to avoid an error.
12400 Use char because int might match the return type of a GCC
12401 builtin and then its argument prototype would still apply. */
b7026657
AC
12402#ifdef __cplusplus
12403extern "C"
12404#endif
b7026657
AC
12405char fabs ();
12406int
12407main ()
12408{
81ecdfbb 12409return fabs ();
b7026657
AC
12410 ;
12411 return 0;
12412}
12413_ACEOF
81ecdfbb 12414if ac_fn_c_try_link "$LINENO"; then :
b7026657
AC
12415 ac_cv_lib_m_fabs=yes
12416else
81ecdfbb 12417 ac_cv_lib_m_fabs=no
b7026657 12418fi
81ecdfbb
RW
12419rm -f core conftest.err conftest.$ac_objext \
12420 conftest$ac_exeext conftest.$ac_ext
b7026657
AC
12421LIBS=$ac_check_lib_save_LIBS
12422fi
81ecdfbb
RW
12423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
12424$as_echo "$ac_cv_lib_m_fabs" >&6; }
d0ac1c44 12425if test "x$ac_cv_lib_m_fabs" = xyes; then :
b7026657
AC
12426 cat >>confdefs.h <<_ACEOF
12427#define HAVE_LIBM 1
12428_ACEOF
12429
12430 LIBS="-lm $LIBS"
12431
12432fi
12433
b7026657
AC
12434
12435
b7026657
AC
12436cgen_breaks=""
12437if grep CGEN_MAINT $srcdir/Makefile.in >/dev/null; then
12438cgen_breaks="break cgen_rtx_error";
12439fi
12440
81ecdfbb 12441ac_config_files="$ac_config_files Makefile.sim:Makefile.in"
38f48d72 12442
81ecdfbb 12443ac_config_files="$ac_config_files Make-common.sim:../common/Make-common.in"
38f48d72 12444
81ecdfbb 12445ac_config_files="$ac_config_files .gdbinit:../common/gdbinit.in"
38f48d72 12446
81ecdfbb 12447ac_config_commands="$ac_config_commands Makefile"
38f48d72 12448
81ecdfbb 12449ac_config_commands="$ac_config_commands stamp-h"
38f48d72 12450
760b3e8b
MF
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
b7026657
AC
12463cat >confcache <<\_ACEOF
12464# This file is a shell script that caches the results of configure
12465# tests run on this system so they can be shared between configure
12466# scripts and configure runs, see configure's option --config-cache.
12467# It is not useful on other systems. If it contains results you don't
12468# want to keep, you may remove or edit it.
12469#
12470# config.status only pays attention to the cache file if you give it
12471# the --recheck option to rerun configure.
12472#
12473# `ac_cv_env_foo' variables (set or unset) will be overridden when
12474# loading this file, other *unset* `ac_cv_foo' will be assigned the
12475# following values.
12476
12477_ACEOF
12478
12479# The following way of writing the cache mishandles newlines in values,
12480# but we know of no workaround that is simple, portable, and efficient.
81ecdfbb 12481# So, we kill variables containing newlines.
b7026657
AC
12482# Ultrix sh set writes to stderr and can't be redirected directly,
12483# and sets the high bit in the cache file unless we assign to the vars.
81ecdfbb
RW
12484(
12485 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12486 eval ac_val=\$$ac_var
12487 case $ac_val in #(
12488 *${as_nl}*)
12489 case $ac_var in #(
12490 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12491$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12492 esac
12493 case $ac_var in #(
12494 _ | IFS | as_nl) ;; #(
12495 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12496 *) { eval $ac_var=; unset $ac_var;} ;;
12497 esac ;;
12498 esac
12499 done
12500
b7026657 12501 (set) 2>&1 |
81ecdfbb
RW
12502 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12503 *${as_nl}ac_space=\ *)
12504 # `set' does not quote correctly, so add quotes: double-quote
12505 # substitution turns \\\\ into \\, and sed turns \\ into \.
b7026657
AC
12506 sed -n \
12507 "s/'/'\\\\''/g;
12508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
81ecdfbb 12509 ;; #(
b7026657
AC
12510 *)
12511 # `set' quotes correctly as required by POSIX, so do not add quotes.
81ecdfbb 12512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b7026657 12513 ;;
81ecdfbb
RW
12514 esac |
12515 sort
12516) |
b7026657 12517 sed '
81ecdfbb 12518 /^ac_cv_env_/b end
b7026657 12519 t clear
81ecdfbb 12520 :clear
b7026657
AC
12521 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12522 t end
81ecdfbb
RW
12523 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12524 :end' >>confcache
12525if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12526 if test -w "$cache_file"; then
d0ac1c44 12527 if test "x$cache_file" != "x/dev/null"; then
81ecdfbb
RW
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12529$as_echo "$as_me: updating cache $cache_file" >&6;}
d0ac1c44
SM
12530 if test ! -f "$cache_file" || test -h "$cache_file"; then
12531 cat confcache >"$cache_file"
12532 else
12533 case $cache_file in #(
12534 */* | ?:*)
12535 mv -f confcache "$cache_file"$$ &&
12536 mv -f "$cache_file"$$ "$cache_file" ;; #(
12537 *)
12538 mv -f confcache "$cache_file" ;;
12539 esac
12540 fi
12541 fi
b7026657 12542 else
81ecdfbb
RW
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12544$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
b7026657
AC
12545 fi
12546fi
12547rm -f confcache
12548
12549test "x$prefix" = xNONE && prefix=$ac_default_prefix
12550# Let make expand exec_prefix.
12551test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12552
b7026657
AC
12553DEFS=-DHAVE_CONFIG_H
12554
12555ac_libobjs=
12556ac_ltlibobjs=
d0ac1c44 12557U=
b7026657
AC
12558for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12559 # 1. Remove the extension, and $U if already installed.
81ecdfbb
RW
12560 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12561 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12562 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12563 # will be set to the directory where LIBOBJS objects are built.
12564 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12565 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b7026657
AC
12566done
12567LIBOBJS=$ac_libobjs
12568
12569LTLIBOBJS=$ac_ltlibobjs
12570
12571
0cb8d851 12572
6bb11ab3 12573if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
d0ac1c44 12574 as_fn_error $? "conditional \"PLUGINS\" was never defined.
6bb11ab3
L
12575Usually this means the macro was only invoked conditionally." "$LINENO" 5
12576fi
31e6ad7d 12577if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
d0ac1c44 12578 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
31e6ad7d
MF
12579Usually this means the macro was only invoked conditionally." "$LINENO" 5
12580fi
b7026657 12581
d0ac1c44 12582: "${CONFIG_STATUS=./config.status}"
81ecdfbb 12583ac_write_fail=0
b7026657
AC
12584ac_clean_files_save=$ac_clean_files
12585ac_clean_files="$ac_clean_files $CONFIG_STATUS"
81ecdfbb
RW
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12587$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12588as_write_fail=0
12589cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b7026657
AC
12590#! $SHELL
12591# Generated by $as_me.
12592# Run this file to recreate the current configuration.
12593# Compiler output produced by configure, useful for debugging
12594# configure, is in config.log if it exists.
c906108c 12595
b7026657
AC
12596debug=false
12597ac_cs_recheck=false
12598ac_cs_silent=false
b7026657 12599
81ecdfbb
RW
12600SHELL=\${CONFIG_SHELL-$SHELL}
12601export SHELL
12602_ASEOF
12603cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12604## -------------------- ##
12605## M4sh Initialization. ##
12606## -------------------- ##
12607
12608# Be more Bourne compatible
12609DUALCASE=1; export DUALCASE # for MKS sh
12610if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b7026657
AC
12611 emulate sh
12612 NULLCMD=:
81ecdfbb 12613 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b7026657
AC
12614 # is contrary to our usage. Disable this feature.
12615 alias -g '${1+"$@"}'='"$@"'
81ecdfbb
RW
12616 setopt NO_GLOB_SUBST
12617else
12618 case `(set -o) 2>/dev/null` in #(
12619 *posix*) :
12620 set -o posix ;; #(
12621 *) :
12622 ;;
12623esac
c906108c 12624fi
b7026657 12625
81ecdfbb
RW
12626
12627as_nl='
12628'
12629export as_nl
12630# Printing a long string crashes Solaris 7 /usr/bin/printf.
12631as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12632as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12633as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12634# Prefer a ksh shell builtin over an external printf program on Solaris,
12635# but without wasting forks for bash or zsh.
12636if test -z "$BASH_VERSION$ZSH_VERSION" \
12637 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12638 as_echo='print -r --'
12639 as_echo_n='print -rn --'
12640elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12641 as_echo='printf %s\n'
12642 as_echo_n='printf %s'
12643else
12644 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12645 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12646 as_echo_n='/usr/ucb/echo -n'
12647 else
12648 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12649 as_echo_n_body='eval
12650 arg=$1;
12651 case $arg in #(
12652 *"$as_nl"*)
12653 expr "X$arg" : "X\\(.*\\)$as_nl";
12654 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12655 esac;
12656 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12657 '
12658 export as_echo_n_body
12659 as_echo_n='sh -c $as_echo_n_body as_echo'
12660 fi
12661 export as_echo_body
12662 as_echo='sh -c $as_echo_body as_echo'
c906108c 12663fi
b7026657 12664
81ecdfbb
RW
12665# The user is always right.
12666if test "${PATH_SEPARATOR+set}" != set; then
12667 PATH_SEPARATOR=:
12668 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12669 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12670 PATH_SEPARATOR=';'
12671 }
12672fi
12673
12674
12675# IFS
12676# We need space, tab and new line, in precisely that order. Quoting is
12677# there to prevent editors from complaining about space-tab.
12678# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12679# splitting by setting IFS to empty value.)
12680IFS=" "" $as_nl"
12681
12682# Find who we are. Look in the path if we contain no directory separator.
d0ac1c44 12683as_myself=
81ecdfbb
RW
12684case $0 in #((
12685 *[\\/]* ) as_myself=$0 ;;
12686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12687for as_dir in $PATH
12688do
12689 IFS=$as_save_IFS
12690 test -z "$as_dir" && as_dir=.
12691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12692 done
12693IFS=$as_save_IFS
b7026657 12694
81ecdfbb
RW
12695 ;;
12696esac
12697# We did not find ourselves, most probably we were run as `sh COMMAND'
12698# in which case we are not to be found in the path.
12699if test "x$as_myself" = x; then
12700 as_myself=$0
12701fi
12702if test ! -f "$as_myself"; then
12703 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12704 exit 1
12705fi
12706
12707# Unset variables that we do not need and which cause bugs (e.g. in
12708# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12709# suppresses any "Segmentation fault" message there. '((' could
12710# trigger a bug in pdksh 5.2.14.
12711for as_var in BASH_ENV ENV MAIL MAILPATH
12712do eval test x\${$as_var+set} = xset \
12713 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12714done
b7026657
AC
12715PS1='$ '
12716PS2='> '
12717PS4='+ '
12718
12719# NLS nuisances.
81ecdfbb
RW
12720LC_ALL=C
12721export LC_ALL
12722LANGUAGE=C
12723export LANGUAGE
12724
12725# CDPATH.
12726(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12727
12728
d0ac1c44
SM
12729# as_fn_error STATUS ERROR [LINENO LOG_FD]
12730# ----------------------------------------
81ecdfbb
RW
12731# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12732# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d0ac1c44 12733# script with STATUS, using 1 if that was 0.
81ecdfbb
RW
12734as_fn_error ()
12735{
d0ac1c44
SM
12736 as_status=$1; test $as_status -eq 0 && as_status=1
12737 if test "$4"; then
12738 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12739 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
b7026657 12740 fi
d0ac1c44 12741 $as_echo "$as_me: error: $2" >&2
81ecdfbb
RW
12742 as_fn_exit $as_status
12743} # as_fn_error
12744
12745
12746# as_fn_set_status STATUS
12747# -----------------------
12748# Set $? to STATUS, without forking.
12749as_fn_set_status ()
12750{
12751 return $1
12752} # as_fn_set_status
12753
12754# as_fn_exit STATUS
12755# -----------------
12756# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12757as_fn_exit ()
12758{
12759 set +e
12760 as_fn_set_status $1
12761 exit $1
12762} # as_fn_exit
12763
12764# as_fn_unset VAR
12765# ---------------
12766# Portably unset VAR.
12767as_fn_unset ()
12768{
12769 { eval $1=; unset $1;}
12770}
12771as_unset=as_fn_unset
12772# as_fn_append VAR VALUE
12773# ----------------------
12774# Append the text in VALUE to the end of the definition contained in VAR. Take
12775# advantage of any shell optimizations that allow amortized linear growth over
12776# repeated appends, instead of the typical quadratic growth present in naive
12777# implementations.
12778if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12779 eval 'as_fn_append ()
12780 {
12781 eval $1+=\$2
12782 }'
12783else
12784 as_fn_append ()
12785 {
12786 eval $1=\$$1\$2
12787 }
12788fi # as_fn_append
c906108c 12789
81ecdfbb
RW
12790# as_fn_arith ARG...
12791# ------------------
12792# Perform arithmetic evaluation on the ARGs, and store the result in the
12793# global $as_val. Take advantage of shells that can avoid forks. The arguments
12794# must be portable across $(()) and expr.
12795if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12796 eval 'as_fn_arith ()
12797 {
12798 as_val=$(( $* ))
12799 }'
12800else
12801 as_fn_arith ()
12802 {
12803 as_val=`expr "$@" || test $? -eq 1`
12804 }
12805fi # as_fn_arith
12806
12807
12808if expr a : '\(a\)' >/dev/null 2>&1 &&
12809 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b7026657 12810 as_expr=expr
c906108c 12811else
b7026657 12812 as_expr=false
c906108c 12813fi
c906108c 12814
81ecdfbb 12815if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b7026657
AC
12816 as_basename=basename
12817else
12818 as_basename=false
c906108c 12819fi
c906108c 12820
81ecdfbb
RW
12821if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12822 as_dirname=dirname
12823else
12824 as_dirname=false
12825fi
c906108c 12826
81ecdfbb 12827as_me=`$as_basename -- "$0" ||
b7026657
AC
12828$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12829 X"$0" : 'X\(//\)$' \| \
81ecdfbb
RW
12830 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12831$as_echo X/"$0" |
12832 sed '/^.*\/\([^/][^/]*\)\/*$/{
12833 s//\1/
12834 q
12835 }
12836 /^X\/\(\/\/\)$/{
12837 s//\1/
12838 q
12839 }
12840 /^X\/\(\/\).*/{
12841 s//\1/
12842 q
12843 }
12844 s/.*/./; q'`
b7026657 12845
b7026657
AC
12846# Avoid depending upon Character Ranges.
12847as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12848as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12849as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12850as_cr_digits='0123456789'
12851as_cr_alnum=$as_cr_Letters$as_cr_digits
12852
81ecdfbb
RW
12853ECHO_C= ECHO_N= ECHO_T=
12854case `echo -n x` in #(((((
12855-n*)
12856 case `echo 'xy\c'` in
12857 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12858 xy) ECHO_C='\c';;
12859 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12860 ECHO_T=' ';;
12861 esac;;
12862*)
12863 ECHO_N='-n';;
b7026657 12864esac
c906108c 12865
81ecdfbb
RW
12866rm -f conf$$ conf$$.exe conf$$.file
12867if test -d conf$$.dir; then
12868 rm -f conf$$.dir/conf$$.file
c906108c 12869else
81ecdfbb
RW
12870 rm -f conf$$.dir
12871 mkdir conf$$.dir 2>/dev/null
c906108c 12872fi
81ecdfbb
RW
12873if (echo >conf$$.file) 2>/dev/null; then
12874 if ln -s conf$$.file conf$$ 2>/dev/null; then
b7026657 12875 as_ln_s='ln -s'
81ecdfbb
RW
12876 # ... but there are two gotchas:
12877 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12878 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d0ac1c44 12879 # In both cases, we have to default to `cp -pR'.
81ecdfbb 12880 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d0ac1c44 12881 as_ln_s='cp -pR'
81ecdfbb
RW
12882 elif ln conf$$.file conf$$ 2>/dev/null; then
12883 as_ln_s=ln
12884 else
d0ac1c44 12885 as_ln_s='cp -pR'
b7026657 12886 fi
b7026657 12887else
d0ac1c44 12888 as_ln_s='cp -pR'
c906108c 12889fi
81ecdfbb
RW
12890rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12891rmdir conf$$.dir 2>/dev/null
12892
12893
12894# as_fn_mkdir_p
12895# -------------
12896# Create "$as_dir" as a directory, including parents if necessary.
12897as_fn_mkdir_p ()
12898{
12899
12900 case $as_dir in #(
12901 -*) as_dir=./$as_dir;;
12902 esac
12903 test -d "$as_dir" || eval $as_mkdir_p || {
12904 as_dirs=
12905 while :; do
12906 case $as_dir in #(
12907 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12908 *) as_qdir=$as_dir;;
12909 esac
12910 as_dirs="'$as_qdir' $as_dirs"
12911 as_dir=`$as_dirname -- "$as_dir" ||
12912$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12913 X"$as_dir" : 'X\(//\)[^/]' \| \
12914 X"$as_dir" : 'X\(//\)$' \| \
12915 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12916$as_echo X"$as_dir" |
12917 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12918 s//\1/
12919 q
12920 }
12921 /^X\(\/\/\)[^/].*/{
12922 s//\1/
12923 q
12924 }
12925 /^X\(\/\/\)$/{
12926 s//\1/
12927 q
12928 }
12929 /^X\(\/\).*/{
12930 s//\1/
12931 q
12932 }
12933 s/.*/./; q'`
12934 test -d "$as_dir" && break
12935 done
12936 test -z "$as_dirs" || eval "mkdir $as_dirs"
d0ac1c44 12937 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
81ecdfbb 12938
c906108c 12939
81ecdfbb 12940} # as_fn_mkdir_p
b7026657 12941if mkdir -p . 2>/dev/null; then
81ecdfbb 12942 as_mkdir_p='mkdir -p "$as_dir"'
c906108c 12943else
b7026657
AC
12944 test -d ./-p && rmdir ./-p
12945 as_mkdir_p=false
c906108c 12946fi
c906108c 12947
d0ac1c44
SM
12948
12949# as_fn_executable_p FILE
12950# -----------------------
12951# Test if FILE is an executable regular file.
12952as_fn_executable_p ()
12953{
12954 test -f "$1" && test -x "$1"
12955} # as_fn_executable_p
12956as_test_x='test -x'
12957as_executable_p=as_fn_executable_p
c906108c 12958
b7026657
AC
12959# Sed expression to map a string onto a valid CPP name.
12960as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
c906108c 12961
b7026657
AC
12962# Sed expression to map a string onto a valid variable name.
12963as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
c906108c 12964
b7026657 12965
b7026657 12966exec 6>&1
81ecdfbb
RW
12967## ----------------------------------- ##
12968## Main body of $CONFIG_STATUS script. ##
12969## ----------------------------------- ##
12970_ASEOF
12971test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12972
12973cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12974# Save the log message, to keep $0 and so on meaningful, and to
b7026657 12975# report actual input values of CONFIG_FILES etc. instead of their
81ecdfbb
RW
12976# values after options handling.
12977ac_log="
b7026657 12978This file was extended by $as_me, which was
d0ac1c44 12979generated by GNU Autoconf 2.69. Invocation command line was
b7026657
AC
12980
12981 CONFIG_FILES = $CONFIG_FILES
12982 CONFIG_HEADERS = $CONFIG_HEADERS
12983 CONFIG_LINKS = $CONFIG_LINKS
12984 CONFIG_COMMANDS = $CONFIG_COMMANDS
12985 $ $0 $@
12986
81ecdfbb
RW
12987on `(hostname || uname -n) 2>/dev/null | sed 1q`
12988"
12989
b7026657
AC
12990_ACEOF
12991
81ecdfbb
RW
12992case $ac_config_files in *"
12993"*) set x $ac_config_files; shift; ac_config_files=$*;;
12994esac
379832de 12995
81ecdfbb
RW
12996case $ac_config_headers in *"
12997"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12998esac
b7026657 12999
b7026657 13000
81ecdfbb
RW
13001cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13002# Files that config.status was made for.
13003config_files="$ac_config_files"
13004config_headers="$ac_config_headers"
81ecdfbb 13005config_commands="$ac_config_commands"
b7026657 13006
81ecdfbb 13007_ACEOF
b7026657 13008
81ecdfbb 13009cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b7026657 13010ac_cs_usage="\
81ecdfbb
RW
13011\`$as_me' instantiates files and other configuration actions
13012from templates according to the current configuration. Unless the files
13013and actions are specified as TAGs, all are instantiated by default.
b7026657 13014
81ecdfbb 13015Usage: $0 [OPTION]... [TAG]...
b7026657
AC
13016
13017 -h, --help print this help, then exit
81ecdfbb 13018 -V, --version print version number and configuration settings, then exit
d0ac1c44 13019 --config print configuration, then exit
81ecdfbb
RW
13020 -q, --quiet, --silent
13021 do not print progress messages
b7026657
AC
13022 -d, --debug don't remove temporary files
13023 --recheck update $as_me by reconfiguring in the same conditions
81ecdfbb
RW
13024 --file=FILE[:TEMPLATE]
13025 instantiate the configuration file FILE
13026 --header=FILE[:TEMPLATE]
13027 instantiate the configuration header FILE
b7026657
AC
13028
13029Configuration files:
13030$config_files
13031
13032Configuration headers:
13033$config_headers
13034
b7026657
AC
13035Configuration commands:
13036$config_commands
13037
81ecdfbb 13038Report bugs to the package provider."
b7026657 13039
81ecdfbb
RW
13040_ACEOF
13041cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 13042ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b7026657
AC
13043ac_cs_version="\\
13044config.status
d0ac1c44
SM
13045configured by $0, generated by GNU Autoconf 2.69,
13046 with options \\"\$ac_cs_config\\"
b7026657 13047
d0ac1c44 13048Copyright (C) 2012 Free Software Foundation, Inc.
b7026657
AC
13049This config.status script is free software; the Free Software Foundation
13050gives unlimited permission to copy, distribute and modify it."
81ecdfbb
RW
13051
13052ac_pwd='$ac_pwd'
13053srcdir='$srcdir'
13054INSTALL='$INSTALL'
6bb11ab3 13055AWK='$AWK'
81ecdfbb 13056test -n "\$AWK" || AWK=awk
b7026657
AC
13057_ACEOF
13058
81ecdfbb
RW
13059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13060# The default lists apply if the user does not specify any file.
b7026657
AC
13061ac_need_defaults=:
13062while test $# != 0
13063do
13064 case $1 in
d0ac1c44 13065 --*=?*)
81ecdfbb
RW
13066 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13067 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b7026657 13068 ac_shift=:
c906108c 13069 ;;
d0ac1c44
SM
13070 --*=)
13071 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13072 ac_optarg=
13073 ac_shift=:
13074 ;;
81ecdfbb 13075 *)
b7026657
AC
13076 ac_option=$1
13077 ac_optarg=$2
13078 ac_shift=shift
c906108c 13079 ;;
b7026657 13080 esac
c906108c 13081
b7026657
AC
13082 case $ac_option in
13083 # Handling of the options.
b7026657
AC
13084 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13085 ac_cs_recheck=: ;;
81ecdfbb
RW
13086 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13087 $as_echo "$ac_cs_version"; exit ;;
d0ac1c44
SM
13088 --config | --confi | --conf | --con | --co | --c )
13089 $as_echo "$ac_cs_config"; exit ;;
81ecdfbb 13090 --debug | --debu | --deb | --de | --d | -d )
b7026657
AC
13091 debug=: ;;
13092 --file | --fil | --fi | --f )
13093 $ac_shift
81ecdfbb
RW
13094 case $ac_optarg in
13095 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d0ac1c44 13096 '') as_fn_error $? "missing file argument" ;;
81ecdfbb
RW
13097 esac
13098 as_fn_append CONFIG_FILES " '$ac_optarg'"
b7026657
AC
13099 ac_need_defaults=false;;
13100 --header | --heade | --head | --hea )
13101 $ac_shift
81ecdfbb
RW
13102 case $ac_optarg in
13103 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13104 esac
13105 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
b7026657 13106 ac_need_defaults=false;;
81ecdfbb
RW
13107 --he | --h)
13108 # Conflict between --help and --header
d0ac1c44 13109 as_fn_error $? "ambiguous option: \`$1'
81ecdfbb
RW
13110Try \`$0 --help' for more information.";;
13111 --help | --hel | -h )
13112 $as_echo "$ac_cs_usage"; exit ;;
b7026657
AC
13113 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13114 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13115 ac_cs_silent=: ;;
c906108c 13116
b7026657 13117 # This is an error.
d0ac1c44 13118 -*) as_fn_error $? "unrecognized option: \`$1'
81ecdfbb 13119Try \`$0 --help' for more information." ;;
c906108c 13120
81ecdfbb
RW
13121 *) as_fn_append ac_config_targets " $1"
13122 ac_need_defaults=false ;;
b7026657
AC
13123
13124 esac
13125 shift
13126done
13127
13128ac_configure_extra_args=
13129
13130if $ac_cs_silent; then
13131 exec 6>/dev/null
13132 ac_configure_extra_args="$ac_configure_extra_args --silent"
c906108c
SS
13133fi
13134
b7026657 13135_ACEOF
81ecdfbb 13136cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b7026657 13137if \$ac_cs_recheck; then
d0ac1c44 13138 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
81ecdfbb
RW
13139 shift
13140 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13141 CONFIG_SHELL='$SHELL'
13142 export CONFIG_SHELL
13143 exec "\$@"
b7026657 13144fi
c906108c 13145
b7026657 13146_ACEOF
81ecdfbb
RW
13147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13148exec 5>>config.log
13149{
13150 echo
13151 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13152## Running $as_me. ##
13153_ASBOX
13154 $as_echo "$ac_log"
13155} >&5
c906108c 13156
81ecdfbb
RW
13157_ACEOF
13158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
db2e4d67
MF
13159#
13160# INIT-COMMANDS
13161#
13162ac_aux_dir=$ac_aux_dir DEPDIR=$DEPDIR
13163
6bb11ab3
L
13164
13165# The HP-UX ksh and POSIX shell print the target directory to stdout
13166# if CDPATH is set.
13167(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13168
13169sed_quote_subst='$sed_quote_subst'
13170double_quote_subst='$double_quote_subst'
13171delay_variable_subst='$delay_variable_subst'
13172macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13173macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13174enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13175enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13176pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13177enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13178SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13179ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13180host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13181host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13182host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13183build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13184build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13185build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13186SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13187Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13188GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13189EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13190FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13191LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13192NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13193LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13194max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13195ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13196exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13197lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13198lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13199lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13200reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13201reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13202OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13203deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13204file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13205AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13206AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13207STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13208RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13209old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13210old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13211old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13212lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13213CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13214CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13215compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13216GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13217lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13218lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13219lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13220lt_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"`'
13221objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13222MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13223lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13224lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13225lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13226lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13227lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13228need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13229DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13230NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13231LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13232OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13233OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13234libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13235shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13236extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13237archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13238enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13239export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13240whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13241compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13242old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13243old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13244archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13245archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13246module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13247module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13248with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13249allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13250no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13251hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13252hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13253hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13254hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13255hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13256hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13257hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13258hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13259inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13260link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13261fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13262always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13263export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13264exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13265include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13266prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13267file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13268variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13269need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13270need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13271version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13272runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13273shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13274shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13275libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13276library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13277soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13278install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13279postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13280postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13281finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13282finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13283hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13284sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13285sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13286hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13287enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13288enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13289enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13290old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13291striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13292
13293LTCC='$LTCC'
13294LTCFLAGS='$LTCFLAGS'
13295compiler='$compiler_DEFAULT'
13296
13297# A function that is used when there is no print builtin or printf.
13298func_fallback_echo ()
13299{
13300 eval 'cat <<_LTECHO_EOF
13301\$1
13302_LTECHO_EOF'
13303}
13304
13305# Quote evaled strings.
13306for var in SHELL \
13307ECHO \
13308SED \
13309GREP \
13310EGREP \
13311FGREP \
13312LD \
13313NM \
13314LN_S \
13315lt_SP2NL \
13316lt_NL2SP \
13317reload_flag \
13318OBJDUMP \
13319deplibs_check_method \
13320file_magic_cmd \
13321AR \
13322AR_FLAGS \
13323STRIP \
13324RANLIB \
13325CC \
13326CFLAGS \
13327compiler \
13328lt_cv_sys_global_symbol_pipe \
13329lt_cv_sys_global_symbol_to_cdecl \
13330lt_cv_sys_global_symbol_to_c_name_address \
13331lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13332lt_prog_compiler_no_builtin_flag \
13333lt_prog_compiler_wl \
13334lt_prog_compiler_pic \
13335lt_prog_compiler_static \
13336lt_cv_prog_compiler_c_o \
13337need_locks \
13338DSYMUTIL \
13339NMEDIT \
13340LIPO \
13341OTOOL \
13342OTOOL64 \
13343shrext_cmds \
13344export_dynamic_flag_spec \
13345whole_archive_flag_spec \
13346compiler_needs_object \
13347with_gnu_ld \
13348allow_undefined_flag \
13349no_undefined_flag \
13350hardcode_libdir_flag_spec \
13351hardcode_libdir_flag_spec_ld \
13352hardcode_libdir_separator \
13353fix_srcfile_path \
13354exclude_expsyms \
13355include_expsyms \
13356file_list_spec \
13357variables_saved_for_relink \
13358libname_spec \
13359library_names_spec \
13360soname_spec \
13361install_override_mode \
13362finish_eval \
13363old_striplib \
13364striplib; do
13365 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13366 *[\\\\\\\`\\"\\\$]*)
13367 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13368 ;;
13369 *)
13370 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13371 ;;
13372 esac
13373done
13374
13375# Double-quote double-evaled strings.
13376for var in reload_cmds \
13377old_postinstall_cmds \
13378old_postuninstall_cmds \
13379old_archive_cmds \
13380extract_expsyms_cmds \
13381old_archive_from_new_cmds \
13382old_archive_from_expsyms_cmds \
13383archive_cmds \
13384archive_expsym_cmds \
13385module_cmds \
13386module_expsym_cmds \
13387export_symbols_cmds \
13388prelink_cmds \
13389postinstall_cmds \
13390postuninstall_cmds \
13391finish_cmds \
13392sys_lib_search_path_spec \
13393sys_lib_dlsearch_path_spec; do
13394 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13395 *[\\\\\\\`\\"\\\$]*)
13396 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13397 ;;
13398 *)
13399 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13400 ;;
13401 esac
13402done
13403
13404ac_aux_dir='$ac_aux_dir'
13405xsi_shell='$xsi_shell'
13406lt_shell_append='$lt_shell_append'
13407
13408# See if we are running on zsh, and set the options which allow our
13409# commands through without removal of \ escapes INIT.
13410if test -n "\${ZSH_VERSION+set}" ; then
13411 setopt NO_GLOB_SUBST
13412fi
13413
13414
13415 PACKAGE='$PACKAGE'
13416 VERSION='$VERSION'
13417 TIMESTAMP='$TIMESTAMP'
13418 RM='$RM'
13419 ofile='$ofile'
13420
13421
13422
13423
81ecdfbb 13424_ACEOF
c906108c 13425
81ecdfbb 13426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
c906108c 13427
81ecdfbb 13428# Handling of arguments.
b7026657 13429for ac_config_target in $ac_config_targets
c906108c 13430do
81ecdfbb
RW
13431 case $ac_config_target in
13432 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
db2e4d67 13433 "depdir") CONFIG_COMMANDS="$CONFIG_COMMANDS depdir" ;;
6bb11ab3 13434 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
81ecdfbb
RW
13435 "Makefile.sim") CONFIG_FILES="$CONFIG_FILES Makefile.sim:Makefile.in" ;;
13436 "Make-common.sim") CONFIG_FILES="$CONFIG_FILES Make-common.sim:../common/Make-common.in" ;;
13437 ".gdbinit") CONFIG_FILES="$CONFIG_FILES .gdbinit:../common/gdbinit.in" ;;
13438 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
13439 "stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
13440
d0ac1c44 13441 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
c906108c
SS
13442 esac
13443done
13444
81ecdfbb 13445
b7026657
AC
13446# If the user did not use the arguments to specify the items to instantiate,
13447# then the envvar interface is used. Set only those that are not.
13448# We use the long form for the default assignment because of an extremely
13449# bizarre bug on SunOS 4.1.3.
13450if $ac_need_defaults; then
13451 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13452 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b7026657
AC
13453 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13454fi
13455
13456# Have a temporary directory for convenience. Make it in the build tree
81ecdfbb 13457# simply because there is no reason against having it here, and in addition,
b7026657 13458# creating and moving files from /tmp can sometimes cause problems.
81ecdfbb
RW
13459# Hook for its removal unless debugging.
13460# Note that there is a small window in which the directory will not be cleaned:
13461# after its creation but before its name has been assigned to `$tmp'.
b7026657
AC
13462$debug ||
13463{
d0ac1c44 13464 tmp= ac_tmp=
81ecdfbb 13465 trap 'exit_status=$?
d0ac1c44
SM
13466 : "${ac_tmp:=$tmp}"
13467 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
81ecdfbb
RW
13468' 0
13469 trap 'as_fn_exit 1' 1 2 13 15
b7026657 13470}
b7026657 13471# Create a (secure) tmp directory for tmp files.
c906108c 13472
b7026657 13473{
81ecdfbb 13474 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d0ac1c44 13475 test -d "$tmp"
b7026657
AC
13476} ||
13477{
81ecdfbb
RW
13478 tmp=./conf$$-$RANDOM
13479 (umask 077 && mkdir "$tmp")
d0ac1c44
SM
13480} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13481ac_tmp=$tmp
b7026657 13482
81ecdfbb
RW
13483# Set up the scripts for CONFIG_FILES section.
13484# No need to generate them if there are no CONFIG_FILES.
13485# This happens for instance with `./config.status config.h'.
13486if test -n "$CONFIG_FILES"; then
b7026657 13487
c906108c 13488
81ecdfbb
RW
13489ac_cr=`echo X | tr X '\015'`
13490# On cygwin, bash can eat \r inside `` if the user requested igncr.
13491# But we know of no other shell where ac_cr would be empty at this
13492# point, so we can use a bashism as a fallback.
13493if test "x$ac_cr" = x; then
13494 eval ac_cr=\$\'\\r\'
13495fi
13496ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13497if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d0ac1c44 13498 ac_cs_awk_cr='\\r'
81ecdfbb
RW
13499else
13500 ac_cs_awk_cr=$ac_cr
13501fi
b7026657 13502
d0ac1c44 13503echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
b7026657
AC
13504_ACEOF
13505
c906108c 13506
81ecdfbb
RW
13507{
13508 echo "cat >conf$$subs.awk <<_ACEOF" &&
13509 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13510 echo "_ACEOF"
13511} >conf$$subs.sh ||
d0ac1c44
SM
13512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13513ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
81ecdfbb
RW
13514ac_delim='%!_!# '
13515for ac_last_try in false false false false false :; do
13516 . ./conf$$subs.sh ||
d0ac1c44 13517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
81ecdfbb
RW
13518
13519 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13520 if test $ac_delim_n = $ac_delim_num; then
13521 break
13522 elif $ac_last_try; then
d0ac1c44 13523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
c906108c 13524 else
81ecdfbb
RW
13525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13526 fi
13527done
13528rm -f conf$$subs.sh
13529
13530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d0ac1c44 13531cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
81ecdfbb
RW
13532_ACEOF
13533sed -n '
13534h
13535s/^/S["/; s/!.*/"]=/
13536p
13537g
13538s/^[^!]*!//
13539:repl
13540t repl
13541s/'"$ac_delim"'$//
13542t delim
13543:nl
13544h
d0ac1c44 13545s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
13546t more1
13547s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13548p
13549n
13550b repl
13551:more1
13552s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13553p
13554g
13555s/.\{148\}//
13556t nl
13557:delim
13558h
d0ac1c44 13559s/\(.\{148\}\)..*/\1/
81ecdfbb
RW
13560t more2
13561s/["\\]/\\&/g; s/^/"/; s/$/"/
13562p
13563b
13564:more2
13565s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13566p
13567g
13568s/.\{148\}//
13569t delim
13570' <conf$$subs.awk | sed '
13571/^[^""]/{
13572 N
13573 s/\n//
13574}
13575' >>$CONFIG_STATUS || ac_write_fail=1
13576rm -f conf$$subs.awk
13577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13578_ACAWK
d0ac1c44 13579cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
81ecdfbb
RW
13580 for (key in S) S_is_set[key] = 1
13581 FS = "\a"
b7026657 13582
81ecdfbb
RW
13583}
13584{
13585 line = $ 0
13586 nfields = split(line, field, "@")
13587 substed = 0
13588 len = length(field[1])
13589 for (i = 2; i < nfields; i++) {
13590 key = field[i]
13591 keylen = length(key)
13592 if (S_is_set[key]) {
13593 value = S[key]
13594 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13595 len += length(value) + length(field[++i])
13596 substed = 1
13597 } else
13598 len += 1 + keylen
13599 }
13600
13601 print line
13602}
c906108c 13603
81ecdfbb
RW
13604_ACAWK
13605_ACEOF
13606cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13607if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13608 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
b7026657 13609else
81ecdfbb 13610 cat
d0ac1c44
SM
13611fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13612 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
81ecdfbb 13613_ACEOF
b7026657 13614
d0ac1c44
SM
13615# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13616# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
81ecdfbb
RW
13617# trailing colons and then remove the whole line if VPATH becomes empty
13618# (actually we leave an empty line to preserve line numbers).
13619if test "x$srcdir" = x.; then
d0ac1c44
SM
13620 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13621h
13622s///
13623s/^/:/
13624s/[ ]*$/:/
13625s/:\$(srcdir):/:/g
13626s/:\${srcdir}:/:/g
13627s/:@srcdir@:/:/g
13628s/^:*//
81ecdfbb 13629s/:*$//
d0ac1c44
SM
13630x
13631s/\(=[ ]*\).*/\1/
13632G
13633s/\n//
81ecdfbb
RW
13634s/^[^=]*=[ ]*$//
13635}'
13636fi
c906108c 13637
81ecdfbb
RW
13638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13639fi # test -n "$CONFIG_FILES"
c906108c 13640
81ecdfbb
RW
13641# Set up the scripts for CONFIG_HEADERS section.
13642# No need to generate them if there are no CONFIG_HEADERS.
13643# This happens for instance with `./config.status Makefile'.
13644if test -n "$CONFIG_HEADERS"; then
d0ac1c44 13645cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
81ecdfbb
RW
13646BEGIN {
13647_ACEOF
b7026657 13648
81ecdfbb
RW
13649# Transform confdefs.h into an awk script `defines.awk', embedded as
13650# here-document in config.status, that substitutes the proper values into
13651# config.h.in to produce config.h.
c906108c 13652
81ecdfbb
RW
13653# Create a delimiter string that does not exist in confdefs.h, to ease
13654# handling of long lines.
13655ac_delim='%!_!# '
13656for ac_last_try in false false :; do
d0ac1c44
SM
13657 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13658 if test -z "$ac_tt"; then
81ecdfbb
RW
13659 break
13660 elif $ac_last_try; then
d0ac1c44 13661 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
b7026657 13662 else
81ecdfbb 13663 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
b7026657 13664 fi
b7026657 13665done
81ecdfbb
RW
13666
13667# For the awk script, D is an array of macro values keyed by name,
13668# likewise P contains macro parameters if any. Preserve backslash
13669# newline sequences.
13670
13671ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13672sed -n '
13673s/.\{148\}/&'"$ac_delim"'/g
13674t rset
13675:rset
13676s/^[ ]*#[ ]*define[ ][ ]*/ /
13677t def
13678d
13679:def
13680s/\\$//
13681t bsnl
13682s/["\\]/\\&/g
13683s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13684D["\1"]=" \3"/p
13685s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13686d
13687:bsnl
13688s/["\\]/\\&/g
13689s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13690D["\1"]=" \3\\\\\\n"\\/p
13691t cont
13692s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13693t cont
13694d
13695:cont
13696n
13697s/.\{148\}/&'"$ac_delim"'/g
13698t clear
13699:clear
13700s/\\$//
13701t bsnlc
13702s/["\\]/\\&/g; s/^/"/; s/$/"/p
13703d
13704:bsnlc
13705s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13706b cont
13707' <confdefs.h | sed '
13708s/'"$ac_delim"'/"\\\
13709"/g' >>$CONFIG_STATUS || ac_write_fail=1
13710
13711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13712 for (key in D) D_is_set[key] = 1
13713 FS = "\a"
13714}
13715/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13716 line = \$ 0
13717 split(line, arg, " ")
13718 if (arg[1] == "#") {
13719 defundef = arg[2]
13720 mac1 = arg[3]
13721 } else {
13722 defundef = substr(arg[1], 2)
13723 mac1 = arg[2]
13724 }
13725 split(mac1, mac2, "(") #)
13726 macro = mac2[1]
13727 prefix = substr(line, 1, index(line, defundef) - 1)
13728 if (D_is_set[macro]) {
13729 # Preserve the white space surrounding the "#".
13730 print prefix "define", macro P[macro] D[macro]
13731 next
13732 } else {
13733 # Replace #undef with comments. This is necessary, for example,
13734 # in the case of _POSIX_SOURCE, which is predefined and required
13735 # on some systems where configure will not decide to define it.
13736 if (defundef == "undef") {
13737 print "/*", prefix defundef, macro, "*/"
13738 next
13739 }
13740 }
13741}
13742{ print }
13743_ACAWK
b7026657 13744_ACEOF
81ecdfbb 13745cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d0ac1c44 13746 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
81ecdfbb 13747fi # test -n "$CONFIG_HEADERS"
b7026657 13748
c906108c 13749
99d8e879 13750eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
81ecdfbb
RW
13751shift
13752for ac_tag
13753do
13754 case $ac_tag in
13755 :[FHLC]) ac_mode=$ac_tag; continue;;
13756 esac
13757 case $ac_mode$ac_tag in
13758 :[FHL]*:*);;
d0ac1c44 13759 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
81ecdfbb
RW
13760 :[FH]-) ac_tag=-:-;;
13761 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
c906108c 13762 esac
81ecdfbb
RW
13763 ac_save_IFS=$IFS
13764 IFS=:
13765 set x $ac_tag
13766 IFS=$ac_save_IFS
13767 shift
13768 ac_file=$1
13769 shift
c906108c 13770
81ecdfbb
RW
13771 case $ac_mode in
13772 :L) ac_source=$1;;
13773 :[FH])
13774 ac_file_inputs=
13775 for ac_f
13776 do
13777 case $ac_f in
d0ac1c44 13778 -) ac_f="$ac_tmp/stdin";;
81ecdfbb
RW
13779 *) # Look for the file first in the build tree, then in the source tree
13780 # (if the path is not absolute). The absolute path cannot be DOS-style,
13781 # because $ac_f cannot contain `:'.
13782 test -f "$ac_f" ||
13783 case $ac_f in
13784 [\\/$]*) false;;
13785 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13786 esac ||
d0ac1c44 13787 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
b7026657 13788 esac
81ecdfbb
RW
13789 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13790 as_fn_append ac_file_inputs " '$ac_f'"
13791 done
b7026657 13792
81ecdfbb
RW
13793 # Let's still pretend it is `configure' which instantiates (i.e., don't
13794 # use $as_me), people would be surprised to read:
13795 # /* config.h. Generated by config.status. */
13796 configure_input='Generated from '`
13797 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13798 `' by configure.'
13799 if test x"$ac_file" != x-; then
13800 configure_input="$ac_file. $configure_input"
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13802$as_echo "$as_me: creating $ac_file" >&6;}
13803 fi
13804 # Neutralize special characters interpreted by sed in replacement strings.
13805 case $configure_input in #(
13806 *\&* | *\|* | *\\* )
13807 ac_sed_conf_input=`$as_echo "$configure_input" |
13808 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13809 *) ac_sed_conf_input=$configure_input;;
13810 esac
b7026657 13811
81ecdfbb 13812 case $ac_tag in
d0ac1c44
SM
13813 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13814 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
81ecdfbb
RW
13815 esac
13816 ;;
13817 esac
b7026657 13818
81ecdfbb 13819 ac_dir=`$as_dirname -- "$ac_file" ||
b7026657
AC
13820$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13821 X"$ac_file" : 'X\(//\)[^/]' \| \
13822 X"$ac_file" : 'X\(//\)$' \| \
81ecdfbb
RW
13823 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13824$as_echo X"$ac_file" |
13825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13826 s//\1/
13827 q
13828 }
13829 /^X\(\/\/\)[^/].*/{
13830 s//\1/
13831 q
13832 }
13833 /^X\(\/\/\)$/{
13834 s//\1/
13835 q
13836 }
13837 /^X\(\/\).*/{
13838 s//\1/
13839 q
13840 }
13841 s/.*/./; q'`
13842 as_dir="$ac_dir"; as_fn_mkdir_p
b7026657
AC
13843 ac_builddir=.
13844
81ecdfbb
RW
13845case "$ac_dir" in
13846.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13847*)
13848 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13849 # A ".." for each directory in $ac_dir_suffix.
13850 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13851 case $ac_top_builddir_sub in
13852 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13853 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13854 esac ;;
13855esac
13856ac_abs_top_builddir=$ac_pwd
13857ac_abs_builddir=$ac_pwd$ac_dir_suffix
13858# for backward compatibility:
13859ac_top_builddir=$ac_top_build_prefix
b7026657
AC
13860
13861case $srcdir in
81ecdfbb 13862 .) # We are building in place.
b7026657 13863 ac_srcdir=.
81ecdfbb
RW
13864 ac_top_srcdir=$ac_top_builddir_sub
13865 ac_abs_top_srcdir=$ac_pwd ;;
13866 [\\/]* | ?:[\\/]* ) # Absolute name.
b7026657 13867 ac_srcdir=$srcdir$ac_dir_suffix;
81ecdfbb
RW
13868 ac_top_srcdir=$srcdir
13869 ac_abs_top_srcdir=$srcdir ;;
13870 *) # Relative name.
13871 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13872 ac_top_srcdir=$ac_top_build_prefix$srcdir
13873 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b7026657 13874esac
81ecdfbb 13875ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b7026657 13876
c906108c 13877
81ecdfbb
RW
13878 case $ac_mode in
13879 :F)
13880 #
13881 # CONFIG_FILE
13882 #
b7026657 13883
81ecdfbb
RW
13884 case $INSTALL in
13885 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13886 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
c906108c 13887 esac
81ecdfbb 13888_ACEOF
c906108c 13889
81ecdfbb
RW
13890cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13891# If the template does not know about datarootdir, expand it.
13892# FIXME: This hack should be removed a few years after 2.60.
13893ac_datarootdir_hack=; ac_datarootdir_seen=
13894ac_sed_dataroot='
13895/datarootdir/ {
13896 p
13897 q
13898}
13899/@datadir@/p
13900/@docdir@/p
13901/@infodir@/p
13902/@localedir@/p
13903/@mandir@/p'
13904case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13905*datarootdir*) ac_datarootdir_seen=yes;;
13906*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13908$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13909_ACEOF
13910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13911 ac_datarootdir_hack='
13912 s&@datadir@&$datadir&g
13913 s&@docdir@&$docdir&g
13914 s&@infodir@&$infodir&g
13915 s&@localedir@&$localedir&g
13916 s&@mandir@&$mandir&g
13917 s&\\\${datarootdir}&$datarootdir&g' ;;
13918esac
b7026657 13919_ACEOF
b7026657 13920
81ecdfbb
RW
13921# Neutralize VPATH when `$srcdir' = `.'.
13922# Shell code in configure.ac might set extrasub.
13923# FIXME: do we really want to maintain this feature?
13924cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13925ac_sed_extra="$ac_vpsub
13926$extrasub
13927_ACEOF
13928cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13929:t
13930/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13931s|@configure_input@|$ac_sed_conf_input|;t t
13932s&@top_builddir@&$ac_top_builddir_sub&;t t
13933s&@top_build_prefix@&$ac_top_build_prefix&;t t
13934s&@srcdir@&$ac_srcdir&;t t
13935s&@abs_srcdir@&$ac_abs_srcdir&;t t
13936s&@top_srcdir@&$ac_top_srcdir&;t t
13937s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13938s&@builddir@&$ac_builddir&;t t
13939s&@abs_builddir@&$ac_abs_builddir&;t t
13940s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13941s&@INSTALL@&$ac_INSTALL&;t t
13942$ac_datarootdir_hack
13943"
d0ac1c44
SM
13944eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13945 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13946
13947test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d0ac1c44
SM
13948 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13949 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13950 "$ac_tmp/out"`; test -z "$ac_out"; } &&
81ecdfbb 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13952which seems to be undefined. Please make sure it is defined" >&5
81ecdfbb 13953$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d0ac1c44 13954which seems to be undefined. Please make sure it is defined" >&2;}
81ecdfbb 13955
d0ac1c44 13956 rm -f "$ac_tmp/stdin"
81ecdfbb 13957 case $ac_file in
d0ac1c44
SM
13958 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13959 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
81ecdfbb 13960 esac \
d0ac1c44 13961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb
RW
13962 ;;
13963 :H)
13964 #
13965 # CONFIG_HEADER
13966 #
13967 if test x"$ac_file" != x-; then
13968 {
13969 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13970 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13971 } >"$ac_tmp/config.h" \
13972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13973 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
81ecdfbb
RW
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13975$as_echo "$as_me: $ac_file is unchanged" >&6;}
13976 else
13977 rm -f "$ac_file"
d0ac1c44
SM
13978 mv "$ac_tmp/config.h" "$ac_file" \
13979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
81ecdfbb 13980 fi
b7026657 13981 else
81ecdfbb 13982 $as_echo "/* $configure_input */" \
d0ac1c44
SM
13983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13984 || as_fn_error $? "could not create -" "$LINENO" 5
81ecdfbb
RW
13985 fi
13986 ;;
b7026657 13987
81ecdfbb
RW
13988 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13989$as_echo "$as_me: executing $ac_file commands" >&6;}
13990 ;;
13991 esac
b7026657
AC
13992
13993
81ecdfbb 13994 case $ac_file$ac_mode in
db2e4d67 13995 "depdir":C) $SHELL $ac_aux_dir/mkinstalldirs $DEPDIR ;;
6bb11ab3
L
13996 "libtool":C)
13997
13998 # See if we are running on zsh, and set the options which allow our
13999 # commands through without removal of \ escapes.
14000 if test -n "${ZSH_VERSION+set}" ; then
14001 setopt NO_GLOB_SUBST
14002 fi
14003
14004 cfgfile="${ofile}T"
14005 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14006 $RM "$cfgfile"
14007
14008 cat <<_LT_EOF >> "$cfgfile"
14009#! $SHELL
14010
14011# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14012# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14013# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14014# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14015#
14016# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14017# 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14018# Written by Gordon Matzigkeit, 1996
14019#
14020# This file is part of GNU Libtool.
14021#
14022# GNU Libtool is free software; you can redistribute it and/or
14023# modify it under the terms of the GNU General Public License as
14024# published by the Free Software Foundation; either version 2 of
14025# the License, or (at your option) any later version.
14026#
14027# As a special exception to the GNU General Public License,
14028# if you distribute this file as part of a program or library that
14029# is built using GNU Libtool, you may include this file under the
14030# same distribution terms that you use for the rest of that program.
14031#
14032# GNU Libtool is distributed in the hope that it will be useful,
14033# but WITHOUT ANY WARRANTY; without even the implied warranty of
14034# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14035# GNU General Public License for more details.
14036#
14037# You should have received a copy of the GNU General Public License
14038# along with GNU Libtool; see the file COPYING. If not, a copy
14039# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14040# obtained by writing to the Free Software Foundation, Inc.,
14041# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14042
14043
14044# The names of the tagged configurations supported by this script.
14045available_tags=""
14046
14047# ### BEGIN LIBTOOL CONFIG
14048
14049# Which release of libtool.m4 was used?
14050macro_version=$macro_version
14051macro_revision=$macro_revision
14052
14053# Whether or not to build shared libraries.
14054build_libtool_libs=$enable_shared
14055
14056# Whether or not to build static libraries.
14057build_old_libs=$enable_static
14058
14059# What type of objects to build.
14060pic_mode=$pic_mode
14061
14062# Whether or not to optimize for fast installation.
14063fast_install=$enable_fast_install
14064
14065# Shell to use when invoking shell scripts.
14066SHELL=$lt_SHELL
14067
14068# An echo program that protects backslashes.
14069ECHO=$lt_ECHO
14070
14071# The host system.
14072host_alias=$host_alias
14073host=$host
14074host_os=$host_os
14075
14076# The build system.
14077build_alias=$build_alias
14078build=$build
14079build_os=$build_os
14080
14081# A sed program that does not truncate output.
14082SED=$lt_SED
14083
14084# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14085Xsed="\$SED -e 1s/^X//"
14086
14087# A grep program that handles long lines.
14088GREP=$lt_GREP
14089
14090# An ERE matcher.
14091EGREP=$lt_EGREP
14092
14093# A literal string matcher.
14094FGREP=$lt_FGREP
14095
14096# A BSD- or MS-compatible name lister.
14097NM=$lt_NM
14098
14099# Whether we need soft or hard links.
14100LN_S=$lt_LN_S
14101
14102# What is the maximum length of a command?
14103max_cmd_len=$max_cmd_len
14104
14105# Object file suffix (normally "o").
14106objext=$ac_objext
14107
14108# Executable file suffix (normally "").
14109exeext=$exeext
14110
14111# whether the shell understands "unset".
14112lt_unset=$lt_unset
14113
14114# turn spaces into newlines.
14115SP2NL=$lt_lt_SP2NL
14116
14117# turn newlines into spaces.
14118NL2SP=$lt_lt_NL2SP
14119
14120# An object symbol dumper.
14121OBJDUMP=$lt_OBJDUMP
14122
14123# Method to check whether dependent libraries are shared objects.
14124deplibs_check_method=$lt_deplibs_check_method
14125
14126# Command to use when deplibs_check_method == "file_magic".
14127file_magic_cmd=$lt_file_magic_cmd
14128
14129# The archiver.
14130AR=$lt_AR
14131AR_FLAGS=$lt_AR_FLAGS
14132
14133# A symbol stripping program.
14134STRIP=$lt_STRIP
14135
14136# Commands used to install an old-style archive.
14137RANLIB=$lt_RANLIB
14138old_postinstall_cmds=$lt_old_postinstall_cmds
14139old_postuninstall_cmds=$lt_old_postuninstall_cmds
14140
14141# Whether to use a lock for old archive extraction.
14142lock_old_archive_extraction=$lock_old_archive_extraction
14143
14144# A C compiler.
14145LTCC=$lt_CC
14146
14147# LTCC compiler flags.
14148LTCFLAGS=$lt_CFLAGS
14149
14150# Take the output of nm and produce a listing of raw symbols and C names.
14151global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14152
14153# Transform the output of nm in a proper C declaration.
14154global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14155
14156# Transform the output of nm in a C name address pair.
14157global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14158
14159# Transform the output of nm in a C name address pair when lib prefix is needed.
14160global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14161
14162# The name of the directory that contains temporary libtool files.
14163objdir=$objdir
14164
14165# Used to examine libraries when file_magic_cmd begins with "file".
14166MAGIC_CMD=$MAGIC_CMD
14167
14168# Must we lock files when doing compilation?
14169need_locks=$lt_need_locks
14170
14171# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14172DSYMUTIL=$lt_DSYMUTIL
14173
14174# Tool to change global to local symbols on Mac OS X.
14175NMEDIT=$lt_NMEDIT
14176
14177# Tool to manipulate fat objects and archives on Mac OS X.
14178LIPO=$lt_LIPO
14179
14180# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14181OTOOL=$lt_OTOOL
14182
14183# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14184OTOOL64=$lt_OTOOL64
14185
14186# Old archive suffix (normally "a").
14187libext=$libext
14188
14189# Shared library suffix (normally ".so").
14190shrext_cmds=$lt_shrext_cmds
14191
14192# The commands to extract the exported symbol list from a shared archive.
14193extract_expsyms_cmds=$lt_extract_expsyms_cmds
14194
14195# Variables whose values should be saved in libtool wrapper scripts and
14196# restored at link time.
14197variables_saved_for_relink=$lt_variables_saved_for_relink
14198
14199# Do we need the "lib" prefix for modules?
14200need_lib_prefix=$need_lib_prefix
14201
14202# Do we need a version for libraries?
14203need_version=$need_version
14204
14205# Library versioning type.
14206version_type=$version_type
14207
14208# Shared library runtime path variable.
14209runpath_var=$runpath_var
14210
14211# Shared library path variable.
14212shlibpath_var=$shlibpath_var
14213
14214# Is shlibpath searched before the hard-coded library search path?
14215shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14216
14217# Format of library name prefix.
14218libname_spec=$lt_libname_spec
14219
14220# List of archive names. First name is the real one, the rest are links.
14221# The last name is the one that the linker finds with -lNAME
14222library_names_spec=$lt_library_names_spec
14223
14224# The coded name of the library, if different from the real name.
14225soname_spec=$lt_soname_spec
14226
14227# Permission mode override for installation of shared libraries.
14228install_override_mode=$lt_install_override_mode
14229
14230# Command to use after installation of a shared archive.
14231postinstall_cmds=$lt_postinstall_cmds
14232
14233# Command to use after uninstallation of a shared archive.
14234postuninstall_cmds=$lt_postuninstall_cmds
14235
14236# Commands used to finish a libtool library installation in a directory.
14237finish_cmds=$lt_finish_cmds
14238
14239# As "finish_cmds", except a single script fragment to be evaled but
14240# not shown.
14241finish_eval=$lt_finish_eval
14242
14243# Whether we should hardcode library paths into libraries.
14244hardcode_into_libs=$hardcode_into_libs
14245
14246# Compile-time system search path for libraries.
14247sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14248
14249# Run-time system search path for libraries.
14250sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14251
14252# Whether dlopen is supported.
14253dlopen_support=$enable_dlopen
14254
14255# Whether dlopen of programs is supported.
14256dlopen_self=$enable_dlopen_self
14257
14258# Whether dlopen of statically linked programs is supported.
14259dlopen_self_static=$enable_dlopen_self_static
14260
14261# Commands to strip libraries.
14262old_striplib=$lt_old_striplib
14263striplib=$lt_striplib
14264
14265
14266# The linker used to build libraries.
14267LD=$lt_LD
14268
14269# How to create reloadable object files.
14270reload_flag=$lt_reload_flag
14271reload_cmds=$lt_reload_cmds
14272
14273# Commands used to build an old-style archive.
14274old_archive_cmds=$lt_old_archive_cmds
14275
14276# A language specific compiler.
14277CC=$lt_compiler
14278
14279# Is the compiler the GNU compiler?
14280with_gcc=$GCC
14281
14282# Compiler flag to turn off builtin functions.
14283no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14284
14285# How to pass a linker flag through the compiler.
14286wl=$lt_lt_prog_compiler_wl
14287
14288# Additional compiler flags for building library objects.
14289pic_flag=$lt_lt_prog_compiler_pic
14290
14291# Compiler flag to prevent dynamic linking.
14292link_static_flag=$lt_lt_prog_compiler_static
14293
14294# Does compiler simultaneously support -c and -o options?
14295compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14296
14297# Whether or not to add -lc for building shared libraries.
14298build_libtool_need_lc=$archive_cmds_need_lc
14299
14300# Whether or not to disallow shared libs when runtime libs are static.
14301allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14302
14303# Compiler flag to allow reflexive dlopens.
14304export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14305
14306# Compiler flag to generate shared objects directly from archives.
14307whole_archive_flag_spec=$lt_whole_archive_flag_spec
14308
14309# Whether the compiler copes with passing no objects directly.
14310compiler_needs_object=$lt_compiler_needs_object
14311
14312# Create an old-style archive from a shared archive.
14313old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14314
14315# Create a temporary old-style archive to link instead of a shared archive.
14316old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14317
14318# Commands used to build a shared archive.
14319archive_cmds=$lt_archive_cmds
14320archive_expsym_cmds=$lt_archive_expsym_cmds
14321
14322# Commands used to build a loadable module if different from building
14323# a shared archive.
14324module_cmds=$lt_module_cmds
14325module_expsym_cmds=$lt_module_expsym_cmds
14326
14327# Whether we are building with GNU ld or not.
14328with_gnu_ld=$lt_with_gnu_ld
14329
14330# Flag that allows shared libraries with undefined symbols to be built.
14331allow_undefined_flag=$lt_allow_undefined_flag
14332
14333# Flag that enforces no undefined symbols.
14334no_undefined_flag=$lt_no_undefined_flag
14335
14336# Flag to hardcode \$libdir into a binary during linking.
14337# This must work even if \$libdir does not exist
14338hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14339
14340# If ld is used when linking, flag to hardcode \$libdir into a binary
14341# during linking. This must work even if \$libdir does not exist.
14342hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14343
14344# Whether we need a single "-rpath" flag with a separated argument.
14345hardcode_libdir_separator=$lt_hardcode_libdir_separator
14346
14347# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14348# DIR into the resulting binary.
14349hardcode_direct=$hardcode_direct
14350
14351# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14352# DIR into the resulting binary and the resulting library dependency is
14353# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14354# library is relocated.
14355hardcode_direct_absolute=$hardcode_direct_absolute
14356
14357# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14358# into the resulting binary.
14359hardcode_minus_L=$hardcode_minus_L
14360
14361# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14362# into the resulting binary.
14363hardcode_shlibpath_var=$hardcode_shlibpath_var
14364
14365# Set to "yes" if building a shared library automatically hardcodes DIR
14366# into the library and all subsequent libraries and executables linked
14367# against it.
14368hardcode_automatic=$hardcode_automatic
14369
14370# Set to yes if linker adds runtime paths of dependent libraries
14371# to runtime path list.
14372inherit_rpath=$inherit_rpath
14373
14374# Whether libtool must link a program against all its dependency libraries.
14375link_all_deplibs=$link_all_deplibs
14376
14377# Fix the shell variable \$srcfile for the compiler.
14378fix_srcfile_path=$lt_fix_srcfile_path
14379
14380# Set to "yes" if exported symbols are required.
14381always_export_symbols=$always_export_symbols
14382
14383# The commands to list exported symbols.
14384export_symbols_cmds=$lt_export_symbols_cmds
14385
14386# Symbols that should not be listed in the preloaded symbols.
14387exclude_expsyms=$lt_exclude_expsyms
14388
14389# Symbols that must always be exported.
14390include_expsyms=$lt_include_expsyms
14391
14392# Commands necessary for linking programs (against libraries) with templates.
14393prelink_cmds=$lt_prelink_cmds
14394
14395# Specify filename containing input files.
14396file_list_spec=$lt_file_list_spec
14397
14398# How to hardcode a shared library path into an executable.
14399hardcode_action=$hardcode_action
14400
14401# ### END LIBTOOL CONFIG
14402
14403_LT_EOF
14404
14405 case $host_os in
14406 aix3*)
14407 cat <<\_LT_EOF >> "$cfgfile"
14408# AIX sometimes has problems with the GCC collect2 program. For some
14409# reason, if we set the COLLECT_NAMES environment variable, the problems
14410# vanish in a puff of smoke.
14411if test "X${COLLECT_NAMES+set}" != Xset; then
14412 COLLECT_NAMES=
14413 export COLLECT_NAMES
14414fi
14415_LT_EOF
14416 ;;
14417 esac
14418
14419
14420ltmain="$ac_aux_dir/ltmain.sh"
14421
14422
14423 # We use sed instead of cat because bash on DJGPP gets confused if
14424 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14425 # text mode, it properly converts lines to CR/LF. This bash problem
14426 # is reportedly fixed, but why not run on old versions too?
14427 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14428 || (rm -f "$cfgfile"; exit 1)
14429
14430 case $xsi_shell in
14431 yes)
14432 cat << \_LT_EOF >> "$cfgfile"
14433
14434# func_dirname file append nondir_replacement
14435# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14436# otherwise set result to NONDIR_REPLACEMENT.
14437func_dirname ()
14438{
14439 case ${1} in
14440 */*) func_dirname_result="${1%/*}${2}" ;;
14441 * ) func_dirname_result="${3}" ;;
14442 esac
14443}
14444
14445# func_basename file
14446func_basename ()
14447{
14448 func_basename_result="${1##*/}"
14449}
14450
14451# func_dirname_and_basename file append nondir_replacement
14452# perform func_basename and func_dirname in a single function
14453# call:
14454# dirname: Compute the dirname of FILE. If nonempty,
14455# add APPEND to the result, otherwise set result
14456# to NONDIR_REPLACEMENT.
14457# value returned in "$func_dirname_result"
14458# basename: Compute filename of FILE.
14459# value retuned in "$func_basename_result"
14460# Implementation must be kept synchronized with func_dirname
14461# and func_basename. For efficiency, we do not delegate to
14462# those functions but instead duplicate the functionality here.
14463func_dirname_and_basename ()
14464{
14465 case ${1} in
14466 */*) func_dirname_result="${1%/*}${2}" ;;
14467 * ) func_dirname_result="${3}" ;;
14468 esac
14469 func_basename_result="${1##*/}"
14470}
14471
14472# func_stripname prefix suffix name
14473# strip PREFIX and SUFFIX off of NAME.
14474# PREFIX and SUFFIX must not contain globbing or regex special
14475# characters, hashes, percent signs, but SUFFIX may contain a leading
14476# dot (in which case that matches only a dot).
14477func_stripname ()
14478{
14479 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14480 # positional parameters, so assign one to ordinary parameter first.
14481 func_stripname_result=${3}
14482 func_stripname_result=${func_stripname_result#"${1}"}
14483 func_stripname_result=${func_stripname_result%"${2}"}
14484}
14485
14486# func_opt_split
14487func_opt_split ()
14488{
14489 func_opt_split_opt=${1%%=*}
14490 func_opt_split_arg=${1#*=}
14491}
14492
14493# func_lo2o object
14494func_lo2o ()
14495{
14496 case ${1} in
14497 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14498 *) func_lo2o_result=${1} ;;
14499 esac
14500}
14501
14502# func_xform libobj-or-source
14503func_xform ()
14504{
14505 func_xform_result=${1%.*}.lo
14506}
14507
14508# func_arith arithmetic-term...
14509func_arith ()
14510{
14511 func_arith_result=$(( $* ))
14512}
14513
14514# func_len string
14515# STRING may not start with a hyphen.
14516func_len ()
14517{
14518 func_len_result=${#1}
14519}
14520
14521_LT_EOF
14522 ;;
14523 *) # Bourne compatible functions.
14524 cat << \_LT_EOF >> "$cfgfile"
14525
14526# func_dirname file append nondir_replacement
14527# Compute the dirname of FILE. If nonempty, add APPEND to the result,
14528# otherwise set result to NONDIR_REPLACEMENT.
14529func_dirname ()
14530{
14531 # Extract subdirectory from the argument.
14532 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14533 if test "X$func_dirname_result" = "X${1}"; then
14534 func_dirname_result="${3}"
14535 else
14536 func_dirname_result="$func_dirname_result${2}"
14537 fi
14538}
14539
14540# func_basename file
14541func_basename ()
14542{
14543 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14544}
14545
14546
14547# func_stripname prefix suffix name
14548# strip PREFIX and SUFFIX off of NAME.
14549# PREFIX and SUFFIX must not contain globbing or regex special
14550# characters, hashes, percent signs, but SUFFIX may contain a leading
14551# dot (in which case that matches only a dot).
14552# func_strip_suffix prefix name
14553func_stripname ()
14554{
14555 case ${2} in
14556 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14557 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14558 esac
14559}
14560
14561# sed scripts:
14562my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14563my_sed_long_arg='1s/^-[^=]*=//'
14564
14565# func_opt_split
14566func_opt_split ()
14567{
14568 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14569 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14570}
14571
14572# func_lo2o object
14573func_lo2o ()
14574{
14575 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14576}
14577
14578# func_xform libobj-or-source
14579func_xform ()
14580{
14581 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14582}
14583
14584# func_arith arithmetic-term...
14585func_arith ()
14586{
14587 func_arith_result=`expr "$@"`
14588}
14589
14590# func_len string
14591# STRING may not start with a hyphen.
14592func_len ()
14593{
14594 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14595}
14596
14597_LT_EOF
14598esac
14599
14600case $lt_shell_append in
14601 yes)
14602 cat << \_LT_EOF >> "$cfgfile"
14603
14604# func_append var value
14605# Append VALUE to the end of shell variable VAR.
14606func_append ()
14607{
14608 eval "$1+=\$2"
14609}
14610_LT_EOF
14611 ;;
14612 *)
14613 cat << \_LT_EOF >> "$cfgfile"
14614
14615# func_append var value
14616# Append VALUE to the end of shell variable VAR.
14617func_append ()
14618{
14619 eval "$1=\$$1\$2"
14620}
14621
14622_LT_EOF
14623 ;;
14624 esac
14625
14626
14627 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14628 || (rm -f "$cfgfile"; exit 1)
14629
14630 mv -f "$cfgfile" "$ofile" ||
14631 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14632 chmod +x "$ofile"
14633
14634 ;;
81ecdfbb 14635 "Makefile":C) echo "Merging Makefile.sim+Make-common.sim into Makefile ..."
38f48d72
AC
14636 rm -f Makesim1.tmp Makesim2.tmp Makefile
14637 sed -n -e '/^## COMMON_PRE_/,/^## End COMMON_PRE_/ p' <Make-common.sim >Makesim1.tmp
14638 sed -n -e '/^## COMMON_POST_/,/^## End COMMON_POST_/ p' <Make-common.sim >Makesim2.tmp
14639 sed -e '/^## COMMON_PRE_/ r Makesim1.tmp' \
c906108c
SS
14640 -e '/^## COMMON_POST_/ r Makesim2.tmp' \
14641 <Makefile.sim >Makefile
38f48d72 14642 rm -f Makefile.sim Make-common.sim Makesim1.tmp Makesim2.tmp
b7026657 14643 ;;
81ecdfbb
RW
14644 "stamp-h":C) echo > stamp-h ;;
14645
b7026657 14646 esac
81ecdfbb 14647done # for ac_tag
c906108c 14648
b7026657 14649
81ecdfbb 14650as_fn_exit 0
b7026657 14651_ACEOF
b7026657
AC
14652ac_clean_files=$ac_clean_files_save
14653
81ecdfbb 14654test $ac_write_fail = 0 ||
d0ac1c44 14655 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
81ecdfbb 14656
b7026657
AC
14657
14658# configure is writing to config.log, and then calls config.status.
14659# config.status does its own redirection, appending to config.log.
14660# Unfortunately, on DOS this fails, as config.log is still kept open
14661# by configure, so config.status won't be able to write to it; its
14662# output is simply discarded. So we exec the FD to /dev/null,
14663# effectively closing config.log, so it can be properly (re)opened and
14664# appended to by config.status. When coming back to configure, we
14665# need to make the FD available again.
14666if test "$no_create" != yes; then
14667 ac_cs_success=:
14668 ac_config_status_args=
14669 test "$silent" = yes &&
14670 ac_config_status_args="$ac_config_status_args --quiet"
14671 exec 5>/dev/null
14672 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14673 exec 5>>config.log
14674 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14675 # would make configure fail if this is the last instruction.
d0ac1c44 14676 $ac_cs_success || as_fn_exit 1
81ecdfbb
RW
14677fi
14678if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14680$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
b7026657 14681fi
c906108c
SS
14682
14683